Skip to main content
OpenLIT uses OpenTelemetry Auto-Instrumentation to help you monitor LLM applications built using The Grid AI. This includes tracking performance, token usage, costs, and how users interact with the application. Auto-instrumentation means you don’t have to set up monitoring manually for different LLMs, frameworks, or databases. By simply adding OpenLIT in your application, all the necessary monitoring configurations are automatically set up. As The Grid AI uses the OpenAI SDK, This integration is compatible with
  • OpenAI Python SDK client >=1.92.0, matching the openai constraint in OpenLIT’s own pyproject.toml

Get started

1

Install OpenLIT

Open your command line or terminal and run:
2

Initialize OpenLIT in your Application

Perfect for existing applications - no code modifications needed:
Perfect for: Legacy applications, production systems where code changes need approval, quick testing, or when you want to add observability without touching existing code.
Replace: YOUR_OTEL_ENDPOINT with the URL of your OpenTelemetry backend, such as http://127.0.0.1:4318 if you are using OpenLIT and a local OTel Collector.To send metrics and traces to other Observability tools, refer to the supported destinations.For more advanced configurations and application use cases, visit the OpenLIT Python repository or OpenLIT Typescript repository.
The Grid AI addresses capability tiers rather than a specific lab’s model name: text-standard, code-prime and agent-max each route to a current model for that tier. The span records the resolved model, so traces show which model actually served the request.
Cost is not calculated for The Grid AI out of the box. The Grid AI is market-priced and publishes no per-token rate, so it has no entry in OpenLIT’s bundled pricing.json. You get spans, token counts and latency, but the cost attribute will be absent.To get cost, point openlit.init() at your own pricing document:
See SDK pricing for the expected shape.

Quickstart: LLM Observability

Production-ready AI monitoring setup in 2 simple steps with zero code changes

Configuration

Configure the OpenLIT SDK according to you requirements.

Destinations

Send telemetry to Datadog, Grafana, New Relic, and other observability stacks