Skip to main content

SDK configuration (backend)

Frontend equivalents are passed directly to initAutterBrowser({...}) rather than read from process.env (bundlers don’t expose server env vars to the browser by default) — for example import.meta.env.VITE_GIT_SHA for release.

Endpoint regression SDK options

These are JavaScript options for initAutterServer and Next.js registerAutter, not additional environment variables.
  • release: set this to the deployed commit SHA. GIT_SHA is a convention that your build must supply.
  • environment: use the actual deployment environment and keep its name stable.
  • retainTracesAboveMs: a positive duration in milliseconds opts into bounded retention of slow successful server traces in the local process. Use 2000 as a starting example, not a universal threshold. Zero or omission leaves this retention off. Check export volume after enabling it.
  • instrumentations: add required database or dependency instrumentation to the existing initialization. Do not create a second SDK.
Use Node/Next.js SDK 1.3.0 or later; prefer patch 1.3.1. Self-hosted ingesters require 1.3.1 or later. There is no dedicated retainTracesAboveMs environment variable. See Endpoint regressions for limits and external OTel requirements.

Ingester configuration (self-hosted)

AUTTER_INGEST_KEYS

A JSON array, one entry per key:
  • Server keys (autter_rt_…) have no scope field and can send OTLP traces/metrics plus relay browser events.
  • Client keys (autter_rtc_…) need "scope": "client" and an allowedOrigins list — the ingester rejects /v1/browser requests whose Origin isn’t on the list.
  • One key pair per app or repository — repositoryId is how data is grouped for analysis.
Generate keys with anything sufficiently random, for example:
Full config reference: packages/otlp-ingester.

Self-hosting

Run the ingester locally, on a single server, or on AWS.