-
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
refactor(opentelemetry): replace plugin attribute with plugin metadata #11940
refactor(opentelemetry): replace plugin attribute with plugin metadata #11940
Conversation
apisix/plugins/opentelemetry.lua
Outdated
@@ -192,18 +192,20 @@ local _M = { | |||
priority = 12009, | |||
name = plugin_name, | |||
schema = schema, | |||
attr_schema = attr_schema, | |||
metadata_schema = metadata_schema, |
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.
code style:
metadata_schema = metadata_schema, | |
metadata_schema = metadata_schema, |
}, | ||
"set_ngx_var": false | ||
} | ||
}' | ||
``` | ||
|
||
Reload APISIX for changes to take effect. |
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.
do we really need reload now?
conf/config.yaml.example
Outdated
@@ -444,7 +444,7 @@ plugins: # plugin list (sorted by priority) | |||
- request-id # priority: 12015 | |||
- zipkin # priority: 12011 | |||
#- skywalking # priority: 12010 | |||
#- opentelemetry # priority: 12009 | |||
- opentelemetry # priority: 12009 |
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.
why do we need this change?
Description
This PR replaces plugin attribute with plugin metadata in Opentelemetry plugin. Now the same configuration will have to be passed with plugin metadata and not attribute.
Fixes # (issue)
Checklist