Skip to main content

omnia-tracing

Standard OpenTelemetry, curated. One install, one line, and your LLM traffic streams to Omnia — where you grade it, calibrate a judge against your own standards, and find out with confidence intervals whether a cheaper model holds up on your production traffic.

This package contains no instrumentation code of its own. It pins and configures the ecosystem's standard OpenTelemetry instrumentations — which gives it a property no other tracing SDK offers: you can uninstall it without losing your instrumentation. The identical setup in vanilla OTel is documented below; your spans are byte-for-byte the same either way, and nothing proprietary ever goes on the wire.

Install

pip install omnia-tracing

Use

Call once at startup, before constructing any LLM client:

from omnia_tracing import setup

tracing = setup()          # reads OMNIA_API_KEY and OMNIA_TAG
print(tracing.instrumented)  # e.g. ['openai', 'anthropic'] — only what's installed

Short-lived scripts should call tracing.shutdown() before exit to flush pending spans; long-running servers can skip it.

What gets captured

OpenAI, Anthropic, Gemini, and LangChain calls — automatically, and only for libraries actually installed (the instrumented list tells you exactly which). Successful calls, streamed calls, and failed calls (stored as ERROR trace structure — the most valuable signal there is, and the one status-code dashboards can't see).

Your inference does not move: requests keep going to your current provider; only trace telemetry flows to Omnia.

Configuration

Env var Meaning Default
OMNIA_API_KEY Omnia API key — required; setup() raises rather than exporting nowhere silently
OMNIA_TAG Population tag: one tag = one evaluation population in Omnia unset
OMNIA_OTLP_ENDPOINT OTLP/HTTP traces endpoint https://gateway.omnia-voice.com/v1/traces
OTEL_SERVICE_NAME Standard OTel service name unset

All options can also be passed to setup() directly; explicit options beat env vars.

The eject guarantee

Remove this package and wire the same standard pieces yourself — identical spans, same endpoint, nothing lost:

import os
from opentelemetry.sdk.resources import Resource
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.instrumentation.anthropic import AnthropicInstrumentor

provider = TracerProvider(
    resource=Resource.create({"service.name": "my-service", "omnia.tag": "my-agent"})
)
provider.add_span_processor(
    BatchSpanProcessor(
        OTLPSpanExporter(
            endpoint="https://gateway.omnia-voice.com/v1/traces",
            headers={"Authorization": f"Bearer {os.environ['OMNIA_API_KEY']}"},
        )
    )
)
AnthropicInstrumentor().instrument(tracer_provider=provider)
# ...and the other instrumentors for whichever libraries you use

Already emitting OpenTelemetry (Pydantic AI, an existing OTel setup)? You don't need this package at all — three env vars point your existing exporter at Omnia. See the OTLP ingest reference.

Privacy

Span structure is always stored. Model-call content (prompts/completions) is stored only if your Omnia workspace has request logging enabled, under your retention window, with the same scrubbing and size caps as gateway traffic.

Verify your setup — get a receipt, not a hope

OMNIA_API_KEY=sk_... sh -c "$(curl -fsSL https://platform.omnia-voice.com/setup.sh)"

Proves the key works, confirms traces are actually landing, and names your one next step. Instrumentation that fails silently is the industry default; this is the alternative.

Links

Apache-2.0

Download files

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

Source Distribution

omnia_tracing-0.1.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

omnia_tracing-0.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file omnia_tracing-0.1.2.tar.gz.

File metadata

  • Download URL: omnia_tracing-0.1.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for omnia_tracing-0.1.2.tar.gz
Algorithm Hash digest
SHA256 82a7d4dc157cdf92c2d4a7d8afb4b7db960c9b22ba9bd7d17a09fc2546ff77bc
MD5 320be9630ab147a7d4f931625a639847
BLAKE2b-256 776785b65df0a712228091a4a9d8059c7ce5c941c878d255e4f5f87744cd9fbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for omnia_tracing-0.1.2.tar.gz:

Publisher: publish.yml on omnia-v/omnia-tracing

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

File details

Details for the file omnia_tracing-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: omnia_tracing-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for omnia_tracing-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 63334df2b7724f843b0ddf0ebb757a6671838dff71f87bd6967e48ff1002eb78
MD5 ac2a168f04f39a7382792db6e7881639
BLAKE2b-256 6ee770973d117b692281acc4f208157be7fda6115602306f7dc29fc61b48dd51

See more details on using hashes here.

Provenance

The following attestation bundles were made for omnia_tracing-0.1.2-py3-none-any.whl:

Publisher: publish.yml on omnia-v/omnia-tracing

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

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.2 This release

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page