Skip to content

refactor(opentelemetry): replace plugin attribute with plugin metadata#11940

Merged
Revolyssup merged 16 commits into
apache:masterfrom
Revolyssup:revolyssup/otel-metadata
Jan 28, 2025
Merged

refactor(opentelemetry): replace plugin attribute with plugin metadata#11940
Revolyssup merged 16 commits into
apache:masterfrom
Revolyssup:revolyssup/otel-metadata

Conversation

@Revolyssup

@Revolyssup Revolyssup commented Jan 23, 2025

Copy link
Copy Markdown
Contributor

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
Comment thread apisix/plugins/opentelemetry.lua Outdated
name = plugin_name,
schema = schema,
attr_schema = attr_schema,
metadata_schema = metadata_schema,

Copy link
Copy Markdown
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
Comment thread docs/en/latest/plugins/opentelemetry.md Outdated
}'
```

Reload APISIX for changes to take effect.

Copy link
Copy Markdown
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?

Comment thread conf/config.yaml.example Outdated
- zipkin # priority: 12011
#- skywalking # priority: 12010
#- opentelemetry # priority: 12009
- opentelemetry # priority: 12009

Copy link
Copy Markdown
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?

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