Skip to content

Conversation

@manfromanotherland
Copy link
Member

@manfromanotherland manfromanotherland commented Dec 4, 2025

Description

This PR introduces query string improvements for Playwright tests, to reduce the number of distinct metrics a test run can generate and help users get more meaningful data out of a test.

  • stripQueryString: as seen in the metrics-by-endpoint http plugin, query strings can now be removed — it defaults to false
  • normalizeQueryString: defaults to true, prevents too many distinct metrics, can be explicitly set to false to disable this behavior
    • For numeric values, it converts /page?id=123 to /page?id=NUMBER
    • For string values, it converts /page?plan=premium to /page?plan=STRING
    • When mixed values are present, it converts /page?id=123&plan=premium to /page?id=NUMBER&plan=STRING

Pre-merge checklist

This is for use by the Artillery team. Please leave this in if you're contributing to Artillery.

  • Does this require an update to the docs?
  • Does this require a changelog entry?

This PR introduces query string improvements for Playwright tests, to
reduce the number of distinct metrics a test run can generate and help
users get more meaninful data out of a test.

- `stripQueryString`: as seen in the `metrics-by-endpoint` http plugin,
query strings can now be removed — it defaults to `false`
- `normalizeQueryString`: defaults to `true`, prevents too many distinct
metrics, can be explicity set to `normalizeQueryString: false` to
disable this behavior
  - For numeric values, it converts `/page?id=123` to `/page?id=NUMBER`
  - For string values, it converts `/page?plan=premium` to
`/page?plan=STRING`
  - When mixed values are present, it converts
`/page?id=123&plan=premium` to `/page?id=NUMBER&plan=STRING`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants