Skip to main content

LLumo Telemetry SDK (Python)

A powerful telemetry SDK designed to instrument LLM operations via OpenAI, Anthropic, and LangChain and send formatted OpenTelemetry data to your backend telemetry server.

Installation

  1. Create a virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    
  2. Install dependencies:

    pip install -r requirements.txt
    

Setup Guide

Place this initialization setup at the entry point of your application, before you initialize any LLM clients.

```python
from llumo_otel import initSDK, TelemetryConfig

# Initialize the telemetry
config = TelemetryConfig(
    endpoint='http://localhost:4455/api/v1/telemetry',  # Your custom telemetry API endpoint
    authToken='your-auth-token',  # Optional Auth Bearer Token
    flushDelayMillis=500  # Span buffer flush interval (def: 500ms)
)

# Pass optional library instances if you need manual instrumentation
# config.libraries = {
#     "OpenAI": openai_client,
#     "Anthropic": anthropic_client
# }

initSDK(config)

print("Telemetry configured successfully.")

Configuration Options

Option Type Required Description
endpoint string Yes The URL of your telemetry ingestion server
authToken string No Optional Bearer token inside Auth header
flushDelayMillis int No Interval to ship logs in milliseconds. Defaults to 500ms
maxExportBatchSize int No Max payload size limits. Defaults to 50
libraries dict No Optional dict for injecting specific AI client instances

Features

  • Built-in Instrumentations: Supports OpenAI, Anthropic, Gemini (Vertex AI & Google GenAI), LangChain, requests, and urllib3.
  • Auto Data Sanitation: MongoDB-compliant key formatting automatically escapes problematic fields (. and $) before transmission.
  • Trace Exporters: Uses BatchSpanProcessor with a custom FormattingExporter for structured, ready-to-consume payloads.
  • Performance: Asynchronous-style exporting via OTel's native batching to minimize impact on application latency.

Metadata

Release files for llumo-otel 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llumo-otel 0.1.0
File Size Uploaded Provenance Actions
llumo_otel-0.1.0.tar.gz 5.8 kB Without provenance Details for llumo_otel-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llumo-otel 0.1.0
File Interpreter ABI Platform Actions
llumo_otel-0.1.0-py3-none-any.whl Python 3 none any Details for llumo_otel-0.1.0-py3-none-any.whl

Total release size: 11.7 kB

Release files / llumo_otel-0.1.0.tar.gz

Download URL llumo_otel-0.1.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a0b8c16dcc298f4a2193d7ed0ccb7b893b04e5cdd758126a94cc396e5abcaf49
BLAKE2b-256 checksum
How to use checksums
42130a7dd7aa97c8f9e998066fd59d6cdd9b93d963c5fc3c3b66396ca5b386d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / llumo_otel-0.1.0-py3-none-any.whl

Download URL llumo_otel-0.1.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80fa3c0416416730c9fab5c5101e3e89ab883b640fd957bd9a2d6e5e5e9a3c0c
BLAKE2b-256 checksum
How to use checksums
abc37977bc872192c8608890c4bfb647b58f5e212d9b03db2e3bbedb15eadebc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for llumo-otel 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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