You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in grafana/xk6-browser#371, there could be a need to filter out metrics from requests with given urls which just create noise in the results. These could be requests that track user flow, adverts, or requests which aren't related to your team's ownership (if a website/page is split between multiple teams). These wouldn't be useful to see in the results and instead create noise.
Extend the functionality in page.on('metric') to allow for an ignore function, so that users can ignore metrics but still allow the request to complete e.g.:
page.on('metric',metric=>{// All metrics will not be recorded if the url tag matches the regex.metric.ignoreURLTag({urls: [{url: /^https:\/\/example\.com\/[0-9a-f]*\/checkout\/[0-9a-f]*$/},{url: /^https:\/\/example\.com\/catalogue\?session=[0-9a-f]*$/},]});});
Other considerations
We should use the feature to ignore about:blank metrics!
Already existing or connected issues / PRs (optional)
Feature Description
As mentioned in grafana/xk6-browser#371, there could be a need to filter out metrics from requests with given urls which just create noise in the results. These could be requests that track user flow, adverts, or requests which aren't related to your team's ownership (if a website/page is split between multiple teams). These wouldn't be useful to see in the results and instead create noise.
Suggested Solution (optional)
route(url, handler[, options])
xk6-browser#10), to allow the user to add urls to intercept and abort, thus not recording metrics to do with that request. This would also prevent the request from being sent.page.on('metric')
to allow for an ignore function, so that users can ignore metrics but still allow the request to complete e.g.:Other considerations
We should use the feature to ignore
about:blank
metrics!Already existing or connected issues / PRs (optional)
Compliments grafana/xk6-browser#371
Connected: grafana/xk6-browser#10
The text was updated successfully, but these errors were encountered: