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.

Server telemetry quickstart

Install the server package and initialize it before your application creates HTTP servers, database clients, queues, or framework handlers.
pnpm add @aient/otel
import { registerOTel } from '@aient/otel'

registerOTel({
  publishableKey: process.env.AIENT_PUBLISHABLE_KEY,
  serviceName: 'api',
  release: {
    commit: process.env.COMMIT_SHA,
    branch: process.env.COMMIT_REF,
    environment: process.env.NODE_ENV ?? 'development',
  },
})

Required values

ValueSource
publishableKeyAient environment key for the target environment
serviceNameStable name for this runtime, matching source map uploads when applicable
release.environmentDeployment environment slug such as prod, qa, or dev
release.commitExact deployed commit SHA for release correlation
Send traces and logs to Aient unless you override endpoints for local collector testing.