API Surface
The TypeScript SDK exports theObserve class, function equivalents, and Beacon compatibility constants from @asymptote/sdk.
For guided setup, start with SDK Quickstart, Instrumentation, Observe, and SDK Lifecycle.
Observe APIs
Function exports are also available for the same operations, including
initialize, getTracer, observe, patch, initializeAsymptoteInstrumentations, wrapClaudeAgentQuery, flush, shutdown, isInitialized, and resolveExporterConfig.
Initialize Options
Observe.initialize() may only be called once per process configuration. Call Observe.shutdown() before reinitializing with different options. A later initialize({ instrumentModules }) call can patch additional modules without replacing the provider.
Observe Options
Export Modes
Beacon Compatibility Attributes
Cloud SDKs should prefer standard OpenTelemetry attributes when they exist, especiallygen_ai.* attributes for model and prompt metadata. Use Beacon attributes for fields that need to normalize into Beacon endpoint-style events.
SDK Metadata Attributes
Constants
The package exports constants for the stable Beacon event identity and compatibility attributes:Import Beacon compatibility constants
Integration Pages
Anthropic
Instrument
@anthropic-ai/sdk model calls.Claude Agent SDK
Wrap Claude Agent SDK query functions.
OpenAI
Instrument
openai package model calls.Vercel AI SDK
Pass the Asymptote tracer into AI SDK telemetry.

