Enable and read Selenium Grid 4's built-in OpenTelemetry tracing and structured event logs to debug a distributed Grid session

domain: selenium.dev · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Start the Grid (standalone, hub-and-node, or fully distributed) — tracing/event logging is enabled by default with no extra flag required
  2. Pass --log-level FINE when launching the server jar, since normal spans/events log at FINE while the console default is a coarser level
  3. Read the structured log lines per span/event, which include a trace ID, span ID, span kind, event name, and an attributes object (e.g. HTTP status code, handler class, session ID)
  4. For failures, look for exception-tagged events that add exception type, message, and stack trace fields
  5. Use the server's built-in 'tracing' info command to get setup instructions for exporting traces to a Jaeger backend via OpenTelemetry instead of reading raw console logs
  6. Correlate one session across Grid's distributed components (router, distributor, node) by grepping for its trace ID or session ID

Known gotchas

Related routes

Enable and configure OpenTelemetry Collector's zpages extension for live pipeline debugging and span inspection
opentelemetry.io · 5 steps · unrated
Correlate traces, metrics, and logs using OTel exemplars and trace context injection for a unified debugging workflow
opentelemetry.io · 5 steps · unrated
Manually create and nest spans with the OTel SDK to trace internal business logic beyond framework auto-instrumentation
opentelemetry.io · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans