Skip to content

Log trace context option (v3) - #11

Open
frenzzy wants to merge 1 commit into
static-web-server:masterfrom
frenzzy:log-trace-context
Open

frenzzy wants to merge 1 commit into
static-web-server:masterfrom
frenzzy:log-trace-context

Conversation

@frenzzy

@frenzzy frenzzy commented Sep 28, 2026 •

Copy link
Copy Markdown

Description

v3 docs for the --log-trace-context option proposed in static-web-server/static-web-server#760 (issue static-web-server/static-web-server#759):

  • features/logging.md: a new "Logging Trace Context" section: what the option does, the top-level trace_id, span_id and trace_flags fields added to the log lines emitted by the request handler (OpenTelemetry "Trace Context in Non-OTLP Log Formats"), an example and the json format requirement. The "Per-request logging" section mentions the new fields.
  • configuration/cli.md, configuration/env.md, configuration/file.md: the --log-trace-context option, the SERVER_LOG_TRACE_CONTEXT env and the log-trace-context key.

Please merge this only together with (or after) the code PR.

markdownlint-cli2 and prettier --check pass.

Describe the `--log-trace-context` option that adds the trace context of a
valid W3C `traceparent` request header to the JSON log lines emitted by
the request handler, and list it in the CLI, environment variable and
config file references.

This branch has not been deployed

No deployments
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