Skip to content

docs: OpenTelemetry field names in request log lines (v3) - #29

Open
frenzzy wants to merge 2 commits into
static-web-server:masterfrom
frenzzy:docs/log-otel-semconv
Open

frenzzy wants to merge 2 commits into
static-web-server:masterfrom
frenzzy:docs/log-otel-semconv

Conversation

@frenzzy

@frenzzy frenzzy commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Updates the logging page for the semantic convention field names of the per-request response line and the error_page warning: a field table (http.request.method, url.path, url.query, http.response.status_code, http.response.body.size, duration, user_agent.original, client.address, network.peer.address), the order client.address is taken in, IPv4-mapped addresses logged as IPv4 (also in the access log tokens), a note that the pretty format uses the same names, and the JSON examples. The SERVER_LOG_* address entries of the env page name the field each fills. The X-Forwarded-For example now lists the intermediate proxy in --trusted-proxies, so 203.0.113.195 is the address actually logged, and the %{forwarded_for} row says it is the rightmost entry not in trusted proxies.

Code PR: static-web-server/static-web-server#840 (closes static-web-server/static-web-server#771).

Checked with yarn format:check (markdownlint, prettier) and yarn docs:build.

Document the semantic convention names of the default response line and the error_page warning (static-web-server/static-web-server#840): field table, client address order, IPv4-mapped addresses, pretty format, and the examples.

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.

v3: name the JSON log fields after the OpenTelemetry semantic conventions

1 participant