Skip to main content

Parseable

Parseable provides setup guides for the LiteLLM SDK and LiteLLM Gateway.

Overview​

Send LiteLLM traces, logs and metrics to Parseable with OpenTelemetry. The SDK integration records telemetry from Python applications that call LiteLLM. The Gateway integration records gateway traces and Prometheus metrics for routing, failures, spend, token usage, rate limits and infrastructure dependencies.

Both integrations send telemetry through an OpenTelemetry Collector. The Collector stores Parseable credentials and routes traces, logs and metrics to separate datasets.

Prerequisites​

You need a running Parseable instance, a Parseable API key with ingest access, an OpenTelemetry Collector that LiteLLM can reach and a model provider API key.

Monitoring LiteLLM​

Choose the LiteLLM SDK when your Python application imports and calls LiteLLM. Choose the LiteLLM Gateway when applications send requests through a central LiteLLM endpoint.

Create separate Parseable datasets for traces, logs and metrics, then configure the OpenTelemetry Collector to forward each signal. See the Parseable LiteLLM SDK guide for dataset and Collector configuration.

Step 1: Install LiteLLM and the OpenTelemetry packages.

pip install litellm \
opentelemetry-api \
opentelemetry-sdk \
opentelemetry-exporter-otlp

Step 2: Enable the OpenTelemetry callback before making LiteLLM calls.

import litellm

litellm.callbacks = ["otel"]

Step 3: Point LiteLLM at the OpenTelemetry Collector.

export OTEL_EXPORTER="otlp_http"
export OTEL_ENDPOINT="http://localhost:4318"
export OTEL_SERVICE_NAME="litellm-sdk"
export LITELLM_OTEL_V2="true"
export LITELLM_OTEL_INTEGRATION_ENABLE_METRICS="true"
export LITELLM_OTEL_INTEGRATION_ENABLE_EVENTS="true"
export USE_OTEL_LITELLM_REQUEST_SPAN="true"
export OTEL_SEMCONV_STABILITY_OPT_IN="gen_ai_latest_experimental"
export OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT="no_content"

LITELLM_OTEL_INTEGRATION_ENABLE_EVENTS exports GenAI events as logs. USE_OTEL_LITELLM_REQUEST_SPAN and OTEL_SEMCONV_STABILITY_OPT_IN create the CLIENT spans used by the Parseable dashboard queries.

Step 4: Run the application.

import litellm

litellm.callbacks = ["otel"]

response = litellm.completion(
model="openai/gpt-5.6-luna",
messages=[{"role": "user", "content": "What is observability?"}],
)

print(response.choices[0].message.content)

View Traces, Logs and Metrics in Parseable​

Open <sdk-traces-dataset> from the Traces page, <sdk-logs-dataset> from the Logs page and <sdk-metrics-dataset> from the Metrics page. SDK metrics include request duration, token usage, cost and streaming latency.

The Parseable SDK guide provides Collector pipelines, dataset headers, SQL queries and troubleshooting steps.

Dashboard​

The LiteLLM SDK Observability dashboard contains 50 tiles across nine sections. Its SQL queries combine LiteLLM logs, traces and metrics to cover request health, latency, token usage, spend and telemetry quality.

Import the JSON template in Parseable. Set Logs Dataset to <sdk-logs-dataset>, Traces Dataset to <sdk-traces-dataset> and Metrics Dataset to <sdk-metrics-dataset>. Use the Service, Environment, Request Model, Provider and Log Level variables to filter dashboard tiles.

Models and usage​

The Models and Usage section shows model and provider distribution, streaming usage, scenario distribution and SDK inventory. Use it to compare traffic across models and confirm which services and SDK versions produce telemetry.

LiteLLM SDK models and usage dashboard in Parseable

Tokens and cost​

The Tokens and Cost section shows input and output token consumption, spend by model over time and model economics. Use it to find high-volume models and compare token volume with recorded spend.

LiteLLM SDK tokens and cost dashboard in Parseable

The remaining sections cover Traffic and Reliability, Performance and Latency, Cost and FinOps, Logs, Trace Explorer and Metrics and Telemetry. See Parseable Dashboards for import and customization instructions.