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-browser

@aient/otel-browser sends browser traces and logs to Aient using public OTLP HTTP endpoints. Use a publishable key and release metadata from your build environment.

Configuration

OptionMeaning
publishableKeyAient environment publishable key safe for browser code
serviceNameFrontend service name; match source map uploads
release.environmentDeployment environment slug
release.commitBuild commit SHA; match source map uploads
release.branchBuild 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
logs.exporterUrlOptional logs-specific endpoint override
Avoid high-cardinality span names and avoid attaching sensitive user input to attributes.