Skip to main content

serp-tracing

OpenTelemetry-style tracing for Serpentine services.

from serp_tracing import get_tracer, inject, extract

tracer = get_tracer("checkout")

def handle(headers: dict[str, str]) -> None:
    with tracer.start_as_current_span("request", context=extract(headers), kind="SERVER") as span:
        span.set_attribute("http.route", "/items/{id}")
        downstream: dict[str, str] = {}
        inject(downstream)          # traceparent for the next hop

Nested spans link to their parents via a per-thread current-span stack; W3C traceparent is injected and extracted for cross-service traces. Finished spans are written as JSON lines to the in-memory store (finished_spans()), stderr, or a file (set_exporter("file", path)).

Caps: no OTLP exporter or sampling; exceptions are not recorded automatically.

Metadata

Release files for serp-tracing 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 serp-tracing 0.1.0
File Size Uploaded Provenance Actions
serp_tracing-0.1.0.tar.gz 5.6 kB With provenance Details for serp_tracing-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for serp-tracing 0.1.0
File Interpreter ABI Platform Actions
serp_tracing-0.1.0-py3-none-any.whl Python 3 none any Details for serp_tracing-0.1.0-py3-none-any.whl

Total release size: 10.5 kB

Release files / serp_tracing-0.1.0.tar.gz

Download URL serp_tracing-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6a8f816a0405a08041d2c56acabca28e0c881b735618abd50e118a248048da7d
BLAKE2b-256 checksum
How to use checksums
322d68b32723a10e9ad57731437a008b22c979345a60ee69646c9745614d43e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

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

Download URL serp_tracing-0.1.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee64f2e0adb748af15e488ca26c1b2ba520edb56c52b0f55a836c40414aaa20b
BLAKE2b-256 checksum
How to use checksums
81cdae2159e942ef8953108a45c6c7bc2cae2ed5a4ea49ae08c6c6f9f620adaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for serp-tracing 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for serp_tracing-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

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