Prisma OpenTelemetry SDK - Lightweight wrapper for LLM/ML system tracing
Reason this release was yanked:
Released under MIT. Project relicensed to Apache 2.0 in v0.6.2 — install palqee-prisma-otel>=0.6.2.
Project description
palqee-prisma-otel
A lightweight wrapper around OpenTelemetry primitives for LLM/ML system tracing. This package provides simplified configuration and integration with Prisma's authenticated OTLP Receiver.
Installation
pip install palqee-prisma-otel
Imports as palqee_prisma_otel:
from palqee_prisma_otel import configure_tracing
Quick Start
from palqee_prisma_otel import configure_tracing
# Initialize tracing with your Prisma API key
configure_tracing(api_key="your-api-key")
# With run and project context for trace routing
configure_tracing(
api_key="your-api-key",
service_name="my-service",
run_id="run-abc123",
project_id="proj-xyz789",
)
Configuration
The package can be configured using environment variables or directly through configure_tracing():
Environment Variables
PALQEE_PRISMA_OTEL_ENDPOINT: OTLP Receiver endpoint (default:https://otel.prisma.ai:4318)PALQEE_PRISMA_API_KEY: Your Prisma API key for authentication
Direct Configuration
from palqee_prisma_otel import configure_tracing
configure_tracing(
api_key="your-api-key",
endpoint="https://otel.prisma.ai:4318", # optional, overrides env var and default
service_name="my-service", # optional, defaults to "prisma-app"
run_id="run-abc123", # optional, attached as prisma.run.id resource attribute
project_id="proj-xyz789", # optional, attached as prisma.project.id resource attribute
)
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key |
str |
required | Prisma API key sent as x-api-key header |
endpoint |
str | None |
None |
OTLP Receiver endpoint. Falls back to PALQEE_PRISMA_OTEL_ENDPOINT env var, then https://otel.prisma.ai:4318 |
service_name |
str |
"prisma-app" |
OTEL service.name resource attribute |
run_id |
str | None |
None |
Attached as prisma.run.id for trace-to-run routing in the Ingestor |
project_id |
str | None |
None |
Attached as prisma.project.id for trace-to-project routing in the Ingestor |
Features
- Authenticates with the Prisma OTLP Receiver via
x-api-keyheader - HTTP OTLP export with batch span processing
- Resource attributes for run and project routing
- Environment variable-based endpoint configuration
Development
- Clone the repository
- Install development dependencies:
pip install -e ".[dev]"
- Run tests:
pytest
License
MIT License
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.0.tar.gz.
File metadata
- Download URL: palqee_prisma_otel-0.6.0.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a9acbb2c6d79c0f2df26cbac2e7c955c0184a3cae546ac8579f708d5621df5b
|
|
| MD5 |
6caeb2e8338ec678a18c1c19147e8884
|
|
| BLAKE2b-256 |
c8cd92e5be4997469848302f19c3f674d8ddff14be28cd818b47469b120f012d
|
Provenance
The following attestation bundles were made for palqee_prisma_otel-0.6.0.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.0.tar.gz -
Subject digest:
8a9acbb2c6d79c0f2df26cbac2e7c955c0184a3cae546ac8579f708d5621df5b - Sigstore transparency entry: 1630873903
- Sigstore integration time:
-
Permalink:
Palqee/prisma-ai@563f80ae3c69901b9d6615b81bc968dbf726411a -
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@563f80ae3c69901b9d6615b81bc968dbf726411a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file palqee_prisma_otel-0.6.0-py3-none-any.whl.
File metadata
- Download URL: palqee_prisma_otel-0.6.0-py3-none-any.whl
- Upload date:
- Size: 5.1 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 |
da733bcef69dab6081de94a33dbdf8433ec0aa066e94d5070e310d882c30af29
|
|
| MD5 |
2fff1bb4d9e69883f758686011132f45
|
|
| BLAKE2b-256 |
369010245f4cc84695e81bfdcc4f06c5c68ed1a5097a00ee6959b8100fc42a9f
|
Provenance
The following attestation bundles were made for palqee_prisma_otel-0.6.0-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.0-py3-none-any.whl -
Subject digest:
da733bcef69dab6081de94a33dbdf8433ec0aa066e94d5070e310d882c30af29 - Sigstore transparency entry: 1630873923
- Sigstore integration time:
-
Permalink:
Palqee/prisma-ai@563f80ae3c69901b9d6615b81bc968dbf726411a -
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@563f80ae3c69901b9d6615b81bc968dbf726411a -
Trigger Event:
workflow_dispatch
-
Statement type: