Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

logdrop-agent

The LogDrop Python agent traces Python services without code changes and sends privacy-safe spans to LogDrop: distributed traces, service and endpoint health (APM) and the dependency map, also across Java, Node.js and Python services in one trace. It is a distribution of OpenTelemetry Python whose privacy rules are the same as the LogDrop Java and Node.js agents'.

On Kubernetes you do not need this package: the LogDrop Helm chart adds the agent to pods annotated logdrop.io/trace: python. Use it outside Kubernetes.

Requirements

  • CPython 3.10 or newer. On an older Python the agent prints one line and the service runs untraced.
  • A LogDrop project with tracing enabled and a traces ingest key.

Start a service with the agent

pip install logdrop-agent
export LOGDROP_ENDPOINT=https://otel.logdrop.io
export LOGDROP_INGEST_KEY_FILE=/etc/logdrop/trace-ingest-key   # a file that holds the traces key
export LOGDROP_SERVICE=orders
export LOGDROP_ENVIRONMENT=production
logdrop-run gunicorn app:app        # or: logdrop-run python app.py, logdrop-run uvicorn main:app

The service logs one line when the agent starts:

[logdrop-agent] INFO LogDrop Python agent 0.1.0a1 is tracing service "orders" (environment "production") to otel.logdrop.io.

logdrop-run puts the agent first on PYTHONPATH and replaces itself with your command. Your code does not change.

What is traced

Django, Flask and FastAPI; outgoing HTTP with requests, httpx, urllib3, urllib and aiohttp; PostgreSQL (psycopg, psycopg2, asyncpg), MySQL (PyMySQL, mysqlclient, mysql-connector), MongoDB, Redis, RabbitMQ (pika, aio-pika), Kafka (kafka-python, confluent-kafka), Celery and gRPC. Worker processes of pre-fork servers such as gunicorn are traced.

Never sent: request and response headers, cookies, query strings, SQL values (statements leave only as value-free templates), Redis keys, message bodies, exception messages and stack traces.

Custom spans: the optional logdrop-api package.

Documentation: https://developer.logdrop.io/docs/backend-tracing

Licence

The LogDrop parts are licensed under the LogDrop Client Library License 1.0 (LICENSE); the OpenTelemetry packages it depends on keep their Apache License 2.0 (NOTICE).

Metadata

Release files for logdrop-agent 0.1.0a1

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

Source distribution (sdist)

Source distribution for logdrop-agent 0.1.0a1
File Size Uploaded Provenance Actions
logdrop_agent-0.1.0a1.tar.gz 190.8 kB Without provenance Details for logdrop_agent-0.1.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for logdrop-agent 0.1.0a1
File Interpreter ABI Platform Actions
logdrop_agent-0.1.0a1-py3-none-any.whl Python 3 none any Details for logdrop_agent-0.1.0a1-py3-none-any.whl

Total release size: 378.6 kB

Release files / logdrop_agent-0.1.0a1.tar.gz

Download URL logdrop_agent-0.1.0a1.tar.gz
Size 190.8 kB
Tags Source
SHA-256 checksum
How to use checksums
01b6aaac2aac3326184b9de77bc2be69aca0d8b382e7f01dac52d26e67de3cb1
BLAKE2b-256 checksum
How to use checksums
ddacff99113285a8fbde418310a43f17dfd915055197f34319cc727077c08334
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / logdrop_agent-0.1.0a1-py3-none-any.whl

Download URL logdrop_agent-0.1.0a1-py3-none-any.whl
Size 187.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55e1cedb7c1f17b4352019f1c3cff34730550105fbbee79b1731b81c40acfcdb
BLAKE2b-256 checksum
How to use checksums
4bdcc7060ea8628c7cd23d48591848dc47eb2766233680d3ab7fc374cb7ee523
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Security for logdrop-agent 0.1.0a1

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
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