Create an OpenTelemetry exporter
Changed onExports 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.
Request
- Base URLhttps://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
Project ID (proj_...).
Request body
Full OTLP/HTTP traces URL, used exactly as given (for example a URL ending in /v1/traces).
Which backend-specific attributes are added on top of the GenAI semantic conventions. otel adds none.
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.
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.
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).
Generic secret available to the project, required when auth_kind is bearer_token, api_key_header, or basic.
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.
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.
Percentage of turns exported. The decision is made once per turn, so a trace is exported whole or not at all.
Response
Exporter created.
Project ID (proj_...).
Full OTLP/HTTP traces URL.
Which backend-specific attributes are added on top of the GenAI semantic conventions. otel adds none.
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.
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.
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).
Generic secret available to the project, used for authentication. Omitted when auth_kind is none.
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.
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.
Percentage of turns exported. The decision is made once per turn, so a trace is exported whole or not at all.
Changes
- info
endpoint added
- info