Prisma OpenTelemetry SDK - Lightweight wrapper for Oversight Intelligence platform
Project description
Lightweight OpenTelemetry wrapper that ships traces and spans to the Palqee Prisma oversight intelligence platform.
What is this?
palqee-prisma-otel is the transport layer for getting OpenTelemetry traces into Palqee Prisma. It configures an OTLP HTTP exporter pre-wired to authenticate against Prisma's Receiver and tag every span with the resource attributes Prisma uses to route traces to the right run and project.
Most applications should reach for palqee-prisma-ai — the high-level SDK that bundles this wrapper, attaches validators, and exposes a one-line init(). Pick palqee-prisma-otel directly when you need:
- Tracing without the full SDK — sidecars, batch jobs, or libraries that emit spans but never call validators.
- An existing OpenTelemetry setup — you already configure tracers, processors, and propagators yourself, and just need a Prisma-aware exporter.
- Tight control over span emission — long-lived services that manage their own
TracerProviderlifecycle.
Installation
pip install palqee-prisma-otel
Imports as palqee_prisma_otel:
from palqee_prisma_otel import configure_tracing
Requires Python 3.10+.
Quickstart
import os
from palqee_prisma_otel import configure_tracing
configure_tracing(
api_key=os.environ["PALQEE_PRISMA_API_KEY"],
service_name="complaints-review",
run_id="run-abc123", # routes spans to this run in Prisma
project_id="proj-xyz789", # routes spans to this project in Prisma
)
# Any OpenTelemetry span emitted from here on flows to Prisma.
from opentelemetry import trace
tracer = trace.get_tracer(__name__)
with tracer.start_as_current_span("review.case") as span:
span.set_attribute("case.id", "CMP-2025-0001")
...
With PALQEE_PRISMA_API_KEY and PALQEE_PRISMA_OTEL_ENDPOINT set, the call collapses to configure_tracing(service_name="...").
What gets exported
Once configured, every span emitted by your process — from your own code or from any OpenTelemetry instrumentation library — flows to Prisma over OTLP HTTP. That includes spans from popular LLM instrumentation:
| Provider / framework | Instrumentation |
|---|---|
| OpenAI, Anthropic Claude, Meta Llama, Bedrock, Gemini | OpenInference or OpenLLMetry |
| LangChain, LangGraph | OpenInference / OpenLLMetry |
| LlamaIndex | OpenInference |
| CrewAI, AutoGen, Haystack | OpenLLMetry |
| Custom code | opentelemetry-api spans |
palqee-prisma-otel does not install instrumentation libraries — pick the ones you want and install them alongside.
Configuration
| Parameter | Environment variable | Default | Description |
|---|---|---|---|
api_key |
PALQEE_PRISMA_API_KEY |
required | Sent as x-api-key header to the Prisma Receiver |
endpoint |
PALQEE_PRISMA_OTEL_ENDPOINT |
https://otel.prisma.ai:4318 |
OTLP HTTP endpoint of your Prisma deployment |
service_name |
— | "prisma-app" |
OTEL service.name resource attribute |
run_id |
— | None |
Attached as prisma.run.id for trace-to-run routing |
project_id |
— | None |
Attached as prisma.project.id for trace-to-project routing |
Full configuration reference: docs.palqee.com/docs/overview.
Features
- Authenticated OTLP export —
x-api-keyheader pre-wired to the Prisma Receiver. - HTTP transport — uses the standard
opentelemetry-exporter-otlp-proto-httpexporter. - Batch span processing — efficient buffered export, no per-call network overhead.
- Resource attributes —
prisma.run.idandprisma.project.idfor server-side routing. - Environment-first — runs in 12-factor / containerized deployments without code changes.
When to use this vs palqee-prisma-ai
| Need | Reach for |
|---|---|
| Instrument an app, run validators, ship to Prisma in one call | palqee-prisma-ai |
| Send OpenTelemetry spans to Prisma from an existing OTEL setup | palqee-prisma-otel (this package) |
| Both | The SDK uses this wrapper under the hood — installing the SDK is enough |
Links
- Documentation: docs.palqee.com/docs/overview
- High-level SDK:
palqee-prisma-ai - Platform client:
palqee-prisma-client - Website: palqee.com
- Support: support@palqee.com
License
Apache 2.0 © Palqee Ltd.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file palqee_prisma_otel-0.6.2.tar.gz.
File metadata
- Download URL: palqee_prisma_otel-0.6.2.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14f83f3d309b3d1d7962b69fa8f6e414c4b3621adf461e8baad7e6aaee736547
|
|
| MD5 |
577d4506dddb8a8a094335b0d462f021
|
|
| BLAKE2b-256 |
89c89736d84d0bffe9abbc3c1800a265bc41b01837656a3c020b4d3e920cea82
|
Provenance
The following attestation bundles were made for palqee_prisma_otel-0.6.2.tar.gz:
Publisher:
publish.yml on Palqee/prisma-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
palqee_prisma_otel-0.6.2.tar.gz -
Subject digest:
14f83f3d309b3d1d7962b69fa8f6e414c4b3621adf461e8baad7e6aaee736547 - Sigstore transparency entry: 1631563147
- Sigstore integration time:
-
Permalink:
Palqee/prisma-ai@134bf7e427896988d47c0525bbf56c614afd308a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Palqee
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@134bf7e427896988d47c0525bbf56c614afd308a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file palqee_prisma_otel-0.6.2-py3-none-any.whl.
File metadata
- Download URL: palqee_prisma_otel-0.6.2-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9db384f95605320d6b546cc715fe485d13b28d2189e177b8bbb10265df3e6db3
|
|
| MD5 |
4f2539c33ba1c9f181b523b5dda521f3
|
|
| BLAKE2b-256 |
07353e869fe4458f64a10a2447fdbd58e166830891ce1cd4faea2ddca89d5f04
|
Provenance
The following attestation bundles were made for palqee_prisma_otel-0.6.2-py3-none-any.whl:
Publisher:
publish.yml on Palqee/prisma-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
palqee_prisma_otel-0.6.2-py3-none-any.whl -
Subject digest:
9db384f95605320d6b546cc715fe485d13b28d2189e177b8bbb10265df3e6db3 - Sigstore transparency entry: 1631563159
- Sigstore integration time:
-
Permalink:
Palqee/prisma-ai@134bf7e427896988d47c0525bbf56c614afd308a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Palqee
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@134bf7e427896988d47c0525bbf56c614afd308a -
Trigger Event:
workflow_dispatch
-
Statement type: