Prerequisites
- Install and configure Nebius AI Cloud CLI.
- If you don’t have a service account for observability services, create one.
-
Make sure that the service account is in a group that has at least the
editorrole within your tenant; for example, the defaulteditorsgroup. 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. -
Issue a static key for the service account using the following command:
Copy the value of the static key from the
tokenparameter of the response. You will need it later in the configuration steps.
Endpoint and headers
The direct tracing writer accepts OTLP over gRPC on port443.
Use the following endpoint:
<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:
authorization:Bearer <static_token>iam-container:<project_ID>
<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.
/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:- Python
- TypeScript
- Go