﻿# SGLang tracing coverage: roadmap, speculative phases and gateway

A tracing roadmap is not a release matrix. SGLang’s merged speculative-decode spans and gateway propagation provide concrete evidence with different coverage boundaries.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/sglang-tracing-roadmap-speculative-span-coverage/
Language: en

SGLang’s [request-tracing roadmap](https://github.com/sgl-project/sglang/issues/13511), opened on 18 November 2025, identifies gaps including pipeline parallelism and speculative decoding. By the review date, the issue is closed and links implementation work. That is useful project history, but an issue’s status alone does not identify which installed release instruments every execution path.

## Distinguish a planned path from a verified merge

A concrete example is [speculative-decoding tracing PR 19545](https://github.com/sgl-project/sglang/pull/19545), merged on 17 April 2026. Its description names EAGLE and NGRAM worker changes. Draft and verify operations receive level 2 spans; accepted-token counts are recorded as events, and EAGLE draft extension has a level 3 span.

Those boundaries are more informative than a generic “tracing supported” label. They indicate what this change intended to expose, while leaving other worker implementations and later refactors to separate verification. The roadmap also links pipeline-parallel work; that link alone is not used here as proof of its merge or release inclusion.

## Gateway tracing proves a different layer

The current [gateway README](https://raw.githubusercontent.com/sgl-project/sglang/main/sgl-model-gateway/README.md) documents OTLP export, W3C Trace Context propagation for HTTP and gRPC, and context injection into upstream worker requests. Its tracing example uses `--enable-trace` and an OTLP endpoint; the documented default exporter port is 4317.

These controls establish a documented gateway observation path. They do not by themselves establish that a specific engine worker emits draft, verify or pipeline-stage spans. Sending context onward and instrumenting work after receipt are separate responsibilities. The [request identity guide](/journal/provider-request-id-trace-context/) explains why an application request ID also needs to remain distinct from trace and span identities.

## Interpret spans at their actual granularity

A draft span can show time associated with drafting, and an accepted-token event can help connect that interval with useful speculative work. It does not independently provide kernel-level attribution or prove that speculation improved client latency. A slow interval may contain waiting, execution or an instrumentation boundary that needs a lower-level profile to resolve.

The existing [SGLang tracing guide](/journal/sglang-opentelemetry-request-traces/) therefore remains relevant: correlate a request across the processes that actually handle it and label gaps. Do not construct a seemingly complete trace by joining unrelated spans with similar timestamps. Distributed and batched work makes that mistake especially plausible.

## Preserve a coverage record for the deployed version

A proposed acceptance record would name the gateway build, engine commit, worker implementation, parallel configuration, tracing level and collector settings. A small known request should produce the expected parent relationship and relevant phases. A speculative configuration also needs evidence that the selected speculative worker was exercised, rather than merely enabled in a launch command.

Keep observation overhead as a separate comparison under equivalent traffic. The roadmap explicitly includes overhead, exception paths and span completeness as work items; their presence is not a quantitative result. A merged change likewise does not establish zero enabled overhead. The defensible outcome is a verified set of spans for a named execution path and build. Broader coverage, including every pipeline-parallel and speculative variant, requires its own implementation and runtime evidence.
