Skip to main content
OpenInference provides comprehensive Python instrumentation for AI/ML frameworks and LLM providers. All instrumentations are fully OpenTelemetry compatible and can be sent to any OpenTelemetry collector for viewing, such as Arize Phoenix.

Available Instrumentations

The following table lists all available Python instrumentation packages:

Getting Started

All instrumentations follow a similar pattern:
  1. Install the instrumentation package
  2. Configure the OpenTelemetry tracer provider
  3. Instrument your application
  4. Run your code and view traces

Basic Example

Common Features

All OpenInference instrumentations support:
  • Session tracking - Track user sessions across multiple requests
  • User identification - Associate traces with specific users
  • Metadata and tags - Add custom metadata and tags to traces
  • Prompt template tracking - Track prompt templates and variables
  • PII masking - Configure trace masking for sensitive data
  • Context propagation - Automatic propagation of tracing context

Using Context Attributes

Additional Resources

Contributing

To contribute a new instrumentation or report issues, visit the OpenInference GitHub repository.