Skip to content
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

Merged
merged 16 commits into from
Jan 28, 2025

Conversation

Revolyssup
Copy link
Contributor

@Revolyssup Revolyssup commented Jan 23, 2025

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

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. plugin labels Jan 23, 2025
@Revolyssup Revolyssup marked this pull request as draft January 23, 2025 12:21
@Revolyssup Revolyssup marked this pull request as ready for review January 26, 2025 20:06
moonming
moonming previously approved these changes Jan 26, 2025
membphis
membphis previously approved these changes Jan 27, 2025
@@ -192,18 +192,20 @@ local _M = {
priority = 12009,
name = plugin_name,
schema = schema,
attr_schema = attr_schema,
metadata_schema = metadata_schema,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code style:

Suggested change
metadata_schema = metadata_schema,
metadata_schema = metadata_schema,

@Revolyssup Revolyssup dismissed stale reviews from membphis and moonming via 480b385 January 27, 2025 06:18
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Jan 27, 2025
},
"set_ngx_var": false
}
}'
```

Reload APISIX for changes to take effect.
Copy link
Contributor

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?

@@ -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
Copy link
Contributor

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?

@Revolyssup Revolyssup merged commit 5a085bc into apache:master Jan 28, 2025
33 checks passed
@Revolyssup Revolyssup deleted the revolyssup/otel-metadata branch January 28, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants