Skip to content

WIP: Traces#95

Open
kacper-wolkiewicz-reef wants to merge 4 commits into
tracesfrom
traces-for-real
Open

WIP: Traces#95
kacper-wolkiewicz-reef wants to merge 4 commits into
tracesfrom
traces-for-real

Conversation

@kacper-wolkiewicz-reef

Copy link
Copy Markdown
Contributor

No description provided.

Traces are disabled by default and enabled by setting
PYLON_OTEL_TRACES_ENDPOINT to an OTLP collector base URL (analogous to
PYLON_SENTRY_DSN). When enabled, the new init_otel() sets up a
TracerProvider exporting via OTLP HTTP/protobuf and auto-instruments the
Litestar HTTP server, httpx, aiohttp (web3/EVM), SQLAlchemy and asyncio.
The active span's trace_id/span_id are injected into structured logs for
log<->trace correlation; request_id is kept since trace_id only exists
when tracing is enabled.

turbobt's default websocket transport to the chain is not auto-traced
(no instrumentor exists); documented in the service README.
@kacper-wolkiewicz-reef kacper-wolkiewicz-reef changed the base branch from master to traces June 19, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant