Skip to main content
Nebius AI Cloud accepts traces from applications that send OpenTelemetry Protocol (OTLP) data over gRPC. Configure the OpenTelemetry exporter in your application to write traces directly to a regional Tracing writer endpoint. Use this method when your application already uses OpenTelemetry and you do not want to route traces through Nebius Observability Agent for Kubernetes.

Prerequisites

  1. Install and configure Nebius AI Cloud CLI.
  2. If you don’t have a service account for observability services, create one.
  3. Make sure that the service account is in a group that has at least the editor role within your tenant; for example, the default editors group. You can check this in the Administration → IAM section of the web console. If the service account is not in the required group, click  → Add to group, and select editors. Only users with the admin role can add a service account to a group.
  4. Issue a static key for the service account using the following command:
    Copy the value of the static key from the token parameter of the response. You will need it later in the configuration steps.
In addition, add the OpenTelemetry SDK and the OTLP gRPC trace exporter to your application.

Endpoint and headers

The direct tracing writer accepts OTLP over gRPC on port 443. Use the following endpoint:
In this endpoint, replace <region_ID> with the region ID of the project where you want to store traces. Some OpenTelemetry SDKs expect a URL instead of host:port. For those SDKs, use the same endpoint with the https:// scheme:
Include the following gRPC metadata headers with each request:
  • authorization: Bearer <static_token>
  • iam-container: <project_ID>
In these headers, specify the following values:
  • <static_token>: The static key token that you obtained during the prerequisites.
  • <project_ID>: The ID of the project where you want to store traces.
Do not append /v1/traces to the endpoint for OTLP over gRPC.

Configuring an exporter

The following examples show how to configure an OTLP gRPC trace exporter. Add instrumentation for your framework or libraries separately. Before running an application, pass the endpoint parameters and the static key token to it:
When your application stops, shut down the tracer provider to flush spans that are still buffered.

Viewing traces

After configuring the exporter, generate traces from your application. To view and analyze the traces, see How to view traces.

See also