Introduce Global matching pattern for URL within thresholds #3174
Labels
evaluation needed
proposal needs to be validated or tested before fully implementing it in k6
feature
Feature Description
Global matching pattern is widely used across different automation tools, i.e. Cypress
cy.intercept({ method: 'PUT', url: '**/users/*' })
It would also bring benefit in terms of flexibility, when introduced to current k6 threshold url matching mechanism
We're now able to work with following url threshold:
thresholds: { ‘webvital_largest_content_paint{url:www.example-url.com/somepage/someinneresource/page.html’ : [‘p(90) < 2500’], },
But this one isn't supported yet:
thresholds: { ‘webvital_largest_content_paint{url:www.example-url.com/**’ : [‘p(90) < 2500’], },
So for the case when particular URL is changing, i.e maybe including some token ID, or any other dynamic query string it wouldn't be possible to gather k6 metrics for following threshold based on global matched url
Suggested Solution (optional)
No response
Already existing or connected issues / PRs (optional)
No response
The text was updated successfully, but these errors were encountered: