This release is a pre-release and may not be stable for production use.
logdrop-api
Optional custom spans, flush, export status and key update for Python services traced by the LogDrop Python agent. No dependencies. Without the agent every call is safe and records nothing.
pip install logdrop-api
from logdrop_api import LogDrop
tracing = LogDrop.tracing()
with tracing.span("checkout.price") as span:
span.attribute("order.type", "delivery") # custom keys need LOGDROP_ALLOWED_ATTRIBUTE_KEYS=order.type
total = pricing.total(order) # spans started here, also after an await, are its children
@tracing.traced("checkout.validate") # functions and coroutine functions
async def validate(order): ...
- An exception raised in a span records its type only, never its message or traceback, and is passed on.
- Custom attributes are sent only for keys listed in
LOGDROP_ALLOWED_ATTRIBUTE_KEYS; keys that can carry secrets (token,password,authorizationand others) are always dropped. LogDrop.flush(seconds)sends the spans that ended before the call, for example before a batch job exits.LogDrop.export_status(),LogDrop.update_ingest_credential(key)andLogDrop.is_agent_attached()are available too.
Python 3.8 or newer. Documentation: https://developer.logdrop.io/docs/backend-tracing
Licence
LogDrop Client Library License 1.0 (LICENSE).
Metadata
Release files for logdrop-api 0.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| logdrop_api-0.1.0a1.tar.gz | 8.3 kB | Without provenance | Details for logdrop_api-0.1.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| logdrop_api-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details for logdrop_api-0.1.0a1-py3-none-any.whl |
Total release size: 17.2 kB
Release files / logdrop_api-0.1.0a1.tar.gz
| Download URL | logdrop_api-0.1.0a1.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a29fd7e9e7eb5343a4ed22142a50f1201d311cf8e578caf83afd135ded3aa88
|
|
BLAKE2b-256 checksum How to use checksums |
6321058fc4f4fffaf9c1784b66ba32bf0a61019bc96701bd742e874e2b3a0e2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Release files / logdrop_api-0.1.0a1-py3-none-any.whl
| Download URL | logdrop_api-0.1.0a1-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ec955c87d6c564596a25d84ddc413f82276e18ffa3ca21938cd8366ba1d11c8
|
|
BLAKE2b-256 checksum How to use checksums |
5ef74f5b82ecd2507ddadc104ffcd7217c2e9bd9aaaa42bfa43fea0a4e26a8cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Security for logdrop-api 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.