-
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: remove redundant name attribute from logging plugins #10476
Conversation
Lmk if I should apply this change for other plugins in the same PR. Quite a few logging plugins have the same issues if I'm not mistaken. |
yes, please do it |
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.
LGTM and +1 to go ahead and fix this in other plugins as well.
Just saw in apisix/apisix/plugins/clickhouse-logger.lua Lines 28 to 41 in d8bd344
Are we going to:
|
4e94ddd
Option 2 is the clear choice for me |
Ok as it turns out (thanks to the failed CI tests) that this The reason why the In short, these docs should not be removed and the documented default values are consistent with what goes in the code. |
Description
Unique ID for batch processor (attribute
name
) are hardcoded in for quite many logging plugins. The docs, schema of certain plugins, and tests, previously treatname
as a configurable attribute, which could create confusions, such as #10474.Checklist