Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.aient.ai/llms.txt

Use this file to discover all available pages before exploring further.

@aient/otel

@aient/otel configures OpenTelemetry for Node.js services and exports traces and logs to Aient. Initialize it as early as possible in process startup.

Configuration

OptionMeaning
publishableKeyAient environment publishable key used for OTLP auth
serviceNameStable service name used in Aient views
release.environmentDeployment environment slug
release.commitDeployed commit SHA for release and source map correlation
release.branchDeployed branch or ref for release correlation
exporterUrlOptional base endpoint override; the SDK appends /v1/traces and /v1/logs
exporterHeadersOptional custom exporter headers merged with Aient auth
By default, traces use https://ingest.aient.ai/v1/traces and logs use https://ingest.aient.ai/v1/logs.