Events

Create an OpenTelemetry exporter

Changed on

Exports future turns of every agent in the project as OpenTelemetry traces to an OTLP/HTTP endpoint. Spans follow the GenAI semantic conventions, and each finished turn is sent as one OTLP/HTTP request in protobuf or JSON encoding. A project can have up to 100 exporters, and only one exporter per endpoint.

post/orgs/{orgID}/projects/{projectID}/otel-exporters

Request

  • Base URL
    https://api.omnara.com/v1
  • Auth
    • HTTP bearer
    • or API key in cookie __Host-omnara_session and API key in header X-Omnara-Csrf

Path parameters

orgID, string required
projectID, string required

Project ID (proj_...).

Request body

CreateOtelExporterRequest required
endpoint, string required

Full OTLP/HTTP traces URL, used exactly as given (for example a URL ending in /v1/traces).

variant, 'otel' | 'langfuse' | 'braintrust' | 'langsmith'

Which backend-specific attributes are added on top of the GenAI semantic conventions. otel adds none.

encoding, 'protobuf' | 'json'

OTLP/HTTP request body encoding. protobuf sends application/x-protobuf and is accepted by every OTLP/HTTP endpoint; json sends application/json and is available for the otel and langfuse variants only.

auth_kind, 'none' | 'bearer_token' | 'api_key_header' | 'basic'

How the exporter authenticates to the endpoint: none, Authorization Bearer token, a custom API key header named by auth_options.header_name, or HTTP Basic auth with auth_options.username and the secret password.

auth_options, OtelExporterAuthOptions

Non-secret authentication settings. Must be empty for none and bearer_token. With api_key_header, set {"header_name":"..."}. With basic, set {"username":"..."} (for Langfuse, use the public key).

credential_secret_id, string

Generic secret available to the project, required when auth_kind is bearer_token, api_key_header, or basic.

headers, OtelExporterHeaders

Plain request headers sent with every export, by header name. Values are stored and returned as plain text, so Authorization is not accepted here; use auth_kind or secret_headers for credentials.

secret_headers, OtelExporterSecretHeaders

Extra request headers whose values come from generic secrets available to the project, by header name. Prefer auth_kind and credential_secret_id for primary endpoint credentials.

sample_percent, number double

Percentage of turns exported. The decision is made once per turn, so a trace is exported whole or not at all.

Response

Exporter created.

OtelExporter required
id, string required
org_id, string required
project_id, string required

Project ID (proj_...).

endpoint, string required

Full OTLP/HTTP traces URL.

variant, 'otel' | 'langfuse' | 'braintrust' | 'langsmith' required

Which backend-specific attributes are added on top of the GenAI semantic conventions. otel adds none.

encoding, 'protobuf' | 'json' required

OTLP/HTTP request body encoding. protobuf sends application/x-protobuf and is accepted by every OTLP/HTTP endpoint; json sends application/json and is available for the otel and langfuse variants only.

auth_kind, 'none' | 'bearer_token' | 'api_key_header' | 'basic' required

How the exporter authenticates to the endpoint: none, Authorization Bearer token, a custom API key header named by auth_options.header_name, or HTTP Basic auth with auth_options.username and the secret password.

auth_options, OtelExporterAuthOptions required

Non-secret authentication settings. Must be empty for none and bearer_token. With api_key_header, set {"header_name":"..."}. With basic, set {"username":"..."} (for Langfuse, use the public key).

credential_secret_id, string

Generic secret available to the project, used for authentication. Omitted when auth_kind is none.

headers, OtelExporterHeaders required

Plain request headers sent with every export, by header name. Values are stored and returned as plain text, so Authorization is not accepted here; use auth_kind or secret_headers for credentials.

secret_headers, OtelExporterSecretHeaders required

Extra request headers whose values come from generic secrets available to the project, by header name. Prefer auth_kind and credential_secret_id for primary endpoint credentials.

sample_percent, number double required

Percentage of turns exported. The decision is made once per turn, so a trace is exported whole or not at all.

created_at, string date-time required
updated_at, string date-time required

Changes