Skip to main content

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-key header
  • HTTP OTLP export with batch span processing
  • Resource attributes for run and project routing
  • Environment variable-based endpoint configuration

Development

  1. Clone the repository
  2. Install development dependencies:
pip install -e ".[dev]"
  1. Run tests:
pytest

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

palqee_prisma_otel-0.6.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

palqee_prisma_otel-0.6.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

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

Hashes for palqee_prisma_otel-0.6.0.tar.gz
Algorithm Hash digest
SHA256 8a9acbb2c6d79c0f2df26cbac2e7c955c0184a3cae546ac8579f708d5621df5b
MD5 6caeb2e8338ec678a18c1c19147e8884
BLAKE2b-256 c8cd92e5be4997469848302f19c3f674d8ddff14be28cd818b47469b120f012d

See more details on using hashes here.

Provenance

The following attestation bundles were made for palqee_prisma_otel-0.6.0.tar.gz:

Publisher: publish.yml on Palqee/prisma-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file palqee_prisma_otel-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for palqee_prisma_otel-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da733bcef69dab6081de94a33dbdf8433ec0aa066e94d5070e310d882c30af29
MD5 2fff1bb4d9e69883f758686011132f45
BLAKE2b-256 369010245f4cc84695e81bfdcc4f06c5c68ed1a5097a00ee6959b8100fc42a9f

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page