Schema URL inconsistently exported #2569
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Good for taking. Extra help will be provided by maintainers
Describe your environment
Opentelemetry-cpp v1.12.0 on Ubuntu 18
Steps to reproduce
Specify
schema_url
to theGetMeter
,GetTracer
, andResource::Create
functions and set up Tracer/Meter providers to export using the OTLP HTTP exporters.What is the expected behavior?
The exported metrics and traces should contain the
schema_url
.What is the actual behavior?
Only the exported traces contain the
schema_url
. The exported metric data does not contain theschema_url
.Additional context
I verified this by using the
logging
exporter in the Opentelemetry-Collector, which prints the metric/tracing data. I also set up a dummy HTTP server to log all incoming data at/v1/metrics
and/v1/traces
endpoint and only saw theschema_url
for the tracing data.The text was updated successfully, but these errors were encountered: