mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-13 09:06:41 +00:00
fix comment
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
This commit is contained in:
parent
d3e97f82e8
commit
9dfc038d38
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ func (ot *openTelemetryWrapper) serveHTTP(w http.ResponseWriter, r *http.Request
|
|||
caddyhttp.SetVar(ctx, "trace_id", traceID)
|
||||
// Add a span_id placeholder, accessible via `{http.vars.span_id}`.
|
||||
caddyhttp.SetVar(ctx, "span_id", spanID)
|
||||
// Add the trace id to the log fields for the request.
|
||||
// Add the traceID and spanID to the log fields for the request.
|
||||
if extra, ok := ctx.Value(caddyhttp.ExtraLogFieldsCtxKey).(*caddyhttp.ExtraLogFields); ok {
|
||||
extra.Add(zap.String("traceID", traceID))
|
||||
extra.Add(zap.String("spanID", spanID))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue