Skip to content

Integrate named-request URL metadata with the current k6 options - #5

Merged
jgaalen merged 4 commits into
masterfrom
codex/request-url-metadata-integration
Nov 6, 2026
Merged

jgaalen merged 4 commits into
masterfrom
codex/request-url-metadata-integration

Conversation

@jgaalen

@jgaalen jgaalen commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Carries the original contributor commit from #1 onto master. The original PR is the source of the feature and its discussion.

What?

Resolve conflicts in two serialized option fixtures while preserving the updated runtime defaults and the new httpRequestUrl field. The feature implementation and original authorship are preserved.

Validation

The targeted request metadata, full execution options and CLI default-options tests passed locally with the lean build tag and race detection.

dmoll1974 and others added 4 commits October 28, 2026 12:04
Setting a `name` tag on a request overwrites its `url` tag with the name, to
avoid high-cardinality URLs in the indexed tags. That loses the URL the request
actually hit; nothing else in the metric stream carries it.

Add the opt-in `httpRequestUrl` option (K6_HTTP_REQUEST_URL). When enabled,
the real URL is stored in the sample metadata under `request_url`, which is
not indexed, so outputs can report it without the cardinality cost. Default
off; behaviour is unchanged unless enabled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jgaalen
jgaalen merged commit 59700a9 into master Nov 6, 2026
2 checks passed
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.

2 participants