Installation
Basic Setup
Patterns
The SDK offers two ways to add tracing to your TypeScript/JavaScript code:Function Wrapping
UsewithSpan() to wrap function executions:
Decorators
Use the@span decorator for class methods:
Decorators require TypeScript configuration: Enable When using runtime tools like
experimentalDecorators in your tsconfig.json:tsx or ts-node, pass the --experimental-decorators flag.Sessions
Group related spans into sessions:Context
Access current context information:Tagging
Attach tags for filtering and organization:Advanced Configuration
Fine-tune the SDK behavior:Need help? Check out our GitHub examples or reach out on Discord.