-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix: the prometheus lables are inconsistent when using the same batch-processor instance on multi plugins #6047
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just read this PR carefully.
Look like the master branch is also affected by this bug too. (I just read the code, have not reproduced it by myself)
I will try to reproduce it tomorrow.
I can reproduce it in both 2.10 and master branch. What about submitting it to master first? I reproduced it with
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about providing a default value in
apisix/apisix/utils/batch-processor.lua
Line 138 in ddb9cd2
route_id = config.route_id, |
|
I suggest that don't change the origin behavior. Sometimes we need to judge whether matching route accroding to toute_id. |
…processor instance on multi plugins
I will raise a new pull request to master and close this pull request. |
fix #6011
What this PR does / why we need it:
Pre-submission checklist: