Official Python SDK for Tracelit with OpenTelemetry.
Project description
Tracelit Python SDK
Drop-in OpenTelemetry SDK for Python that exports traces, metrics, and logs to Tracelit via OTLP/HTTP.
Install
pip install tracelit
Optional extras:
pip install "tracelit[web]"
pip install "tracelit[db]"
pip install "tracelit[all]"
Quick start
import tracelit
tracelit.auto_start(
api_key="YOUR_KEY",
service_name="payments-api",
environment="production",
)
Frameworks
- Django: add
tracelit.integrations.django.TracelitConfigtoINSTALLED_APPS - FastAPI/Starlette/Sanic/Quart: wrap app with
TracelitASGIMiddleware - Flask/Pyramid/Bottle/CherryPy: wrap app with
TracelitWSGIMiddleware - Celery: call
install_celery_hook()fromtracelit.integrations.celery
Behavior guarantees
- Non-blocking span export with async error-span queue
- Never raises setup or exporter failures into customer code
- Graceful shutdown flush at process exit
TRACELIT_ENABLED=falsedisables telemetry
Configuration
| Option | Env var | Default |
|---|---|---|
| api_key | TRACELIT_API_KEY | required |
| service_name | TRACELIT_SERVICE_NAME | unknown-service |
| environment | TRACELIT_ENVIRONMENT | production |
| endpoint | TRACELIT_ENDPOINT | https://ingest.tracelit.app |
| sample_rate | TRACELIT_SAMPLE_RATE | 1.0 |
| enabled | TRACELIT_ENABLED | true |
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 tracelit_python-0.1.0.tar.gz.
File metadata
- Download URL: tracelit_python-0.1.0.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8d82272ee7b578942c857e784af80a0fdb6af75cc42cb74419947083590007f
|
|
| MD5 |
2bb74c0263730225d92e3a50aa743941
|
|
| BLAKE2b-256 |
102f7ef8992a03c5e17648cc66bdbd59d0b0e8401de24c94020a50ac56e17dc6
|
Provenance
The following attestation bundles were made for tracelit_python-0.1.0.tar.gz:
Publisher:
release.yml on Tracelit-AI/tracelit-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tracelit_python-0.1.0.tar.gz -
Subject digest:
e8d82272ee7b578942c857e784af80a0fdb6af75cc42cb74419947083590007f - Sigstore transparency entry: 1653630755
- Sigstore integration time:
-
Permalink:
Tracelit-AI/tracelit-python@e452bbbbfaaa8b065224384c57d2ab5b2f2cd8a9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Tracelit-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e452bbbbfaaa8b065224384c57d2ab5b2f2cd8a9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tracelit_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tracelit_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.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 |
90da4bd55181f4fb6ee0c642c4417fe908730dcae59142526d91c92a42f0c2ce
|
|
| MD5 |
60269dadc90ca794fc6a359c75fc2f0f
|
|
| BLAKE2b-256 |
681cd228f56c4e89c64fecc58061046a4c3061415b020328019065ed0bbc270c
|
Provenance
The following attestation bundles were made for tracelit_python-0.1.0-py3-none-any.whl:
Publisher:
release.yml on Tracelit-AI/tracelit-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tracelit_python-0.1.0-py3-none-any.whl -
Subject digest:
90da4bd55181f4fb6ee0c642c4417fe908730dcae59142526d91c92a42f0c2ce - Sigstore transparency entry: 1653631969
- Sigstore integration time:
-
Permalink:
Tracelit-AI/tracelit-python@e452bbbbfaaa8b065224384c57d2ab5b2f2cd8a9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Tracelit-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e452bbbbfaaa8b065224384c57d2ab5b2f2cd8a9 -
Trigger Event:
push
-
Statement type: