Tracer and meter instrumentation scope attributes not included with otlp exporters #3184
Labels
bug
Something isn't working
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Describe your environment
main branch at
150256c1720b279a1dfc7c380d17e13e90cee15d
Build configuration.
Steps to reproduce
What is the expected behavior?
The OTLP debug output from the otel-collector should include the instrumentation scope attribute ("scope_key", "scope_value").
What is the actual behavior?
The OTLP debug output does not include the instrumentation scope attributes.
Additional context
Code to set the Instrumentation Scope attributes for logs can be found at otlp_recordable_utils.cc#L173. The debug output from the otel-collector confirms these attributes are included in the otlp message for logs.
Code to set the Instrumentation Scope attributes to the
proto::common::v1::InstrumentationScope
message is missing for metrics (otlp_metric_utils.cc#L252) and traces (otlp_recordable_utils.cc#L107. ):The text was updated successfully, but these errors were encountered: