-
Notifications
You must be signed in to change notification settings - Fork 660
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
OTLP exporter: encode instrumentation scope schema url and attributes to otlp proto #4359
base: main
Are you sure you want to change the base?
OTLP exporter: encode instrumentation scope schema url and attributes to otlp proto #4359
Conversation
…messages. update tests to cover the schema_url and attributes.
Ready for review. Thanks in advance for the feedback! |
Co-authored-by: Riccardo Magliocchetti <[email protected]>
@dbarker fyi no need to update this at every commit, we usually merge main before merging or during reviews 😅 |
haha.. thanks for the heads up and review. Just making sure it is up to date and conflict free.. :) |
@xrmx Any chance you can review this week? I'd like to get this in for the next release if possible. Happy to address any issues you see. Thanks. |
Description
Fixes #4358
This PR updates the OTLP encoding methods to encode the Instrumentation Scope schema url and attributes to the proto messages for logs, metrics and traces.
Without this change the schema url and attributes set on the GetMeter, GetTracer, and GetLogger methods from providers are not exported in OTLP protobuf messages.
Unit tests have been updated to check these fields are populated with the fix.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
This PR adds new cases to the logs, metrics, and trace encoding tests in
opentelemetry-exporter-otlp-proto-common
to cover the instrumentation scope schema url and attributes.Does This PR Require a Contrib Repo Change?
Checklist: