Skip to main content

@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

By default, traces use https://ingest.aient.ai/v1/traces and logs use https://ingest.aient.ai/v1/logs. The SDK sends OTLP HTTP JSON payloads. Legacy http/protobuf protocol values are accepted for compatibility but fall back to JSON.

Release metadata

Pass the full deployed commit SHA explicitly in release.commit so Aient can correlate telemetry with the right release. Make the value available to the running service, not only to its build step:
Use the same commit when uploading source maps. Set it from your deployment system or from git rev-parse HEAD for the checkout being deployed.