Skip to main content

Setup

All examples require:
Configure your .env file:
.env

Basic Usage

From basic_usage.ts. Core concepts: withWorkflow, withTask, withAgent, withTool.
Run it:

OpenAI Integration

From openai_integration.ts. Automatic instrumentation of the OpenAI SDK.
Run it:

Advanced Agentic Workflow

From advanced_tracing.ts. Demonstrates withAgent, withTool, and custom metadata for complex agent workflows.
Run it:

Span Management

Using getClient() API to manually update spans, add events, and record exceptions.

Multi-Provider Tracing

From multi_provider.ts. Trace across multiple AI providers (OpenAI + Anthropic) in a single workflow.
Run it:

Agent with Multiple Tools

Example of an assistant agent using multiple tools for analysis and response generation.

API Reference

Client Methods

More Examples

Explore additional examples in the GitHub repository: View all TypeScript examples on GitHub →