otel-log-span-status
github.com/janinishant/otel-log-span-status- Category
- Developer Tools
- Rank
- No. 3262Tools index
Previous survey · No. 3111 ·
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Deployment & Operations
- GitHub
- 1 stars
- Latest release
- v0.1.0
- Date
About
A Python library that marks the active OpenTelemetry span as ERROR when code logs an error. This matters because code that catches an exception, logs it and returns a response leaves the span status unset, so tail samplers that keep error traces drop the trace. Ignore rules in a YAML file can skip expected or noisy logs by logger glob, message template or message regex.
At a glance
otel-log-span-status marks an active OpenTelemetry span as an error when Python logs an error. It is worth trying if caught exceptions appear in logs but disappear from traces kept by error-based tail sampling.
Good fit
Python service teams that already use OpenTelemetry and retain traces based on span status.
Consider something else when
Skip it if the affected code already sets span status or your sampler does not use status to select traces.
Start here
In a scratch service, catch and log a synthetic exception inside a span. Compare the span status before and after enabling the helper, then check the collector’s retention decision.
Cost and requirements
The package needs Python 3.10 or later, a compatible OpenTelemetry API and an SDK configured in your service. It changes span status. Your existing telemetry pipeline controls export and retention.
Limits to know
Expected errors can make sampling noisy. The documented YAML ignore list can exclude them. A log outside an active span cannot mark the trace you expected.
Sources checked 2026-11-05. Source-based assessment.
Similar tools
Tags
Tech Stack
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.