-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add track_all_path support for the prometheus pump #713
Conversation
GitHub actions yielded the following error. The command that failed is
This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests. I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR. |
GitHub actions yielded the following error. The command that failed is
Please note that the error message indicates a syntax error in the file There are a lot of errors. This is likely due to a small parsing issue or a missing import with the files changed in the PR. This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests. I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR. |
Description
This PR adds support for the
track_all_path
feature in the Prometheus pump of the Tyk Pump project. Thetrack_all_path
feature allows for better control over the processing of analytics records, addressing the cardinality issue in the pump.Summary of Changes
TrackAllPaths
to thePrometheusConf
struct inpumps/prometheus.go
.TrackAllPaths
before processing each record in theWriteData
function ofpumps/prometheus.go
.pumps/prometheus_test.go
to validate the behavior of theTrackAllPaths
check.Please review and merge this PR to resolve the cardinality issue in the Prometheus pump.
Fixes #712.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.