opentelemetry-collector icon indicating copy to clipboard operation
opentelemetry-collector copied to clipboard

otlphttp export metric lost resource attributes

Open halleystar opened this issue 1 year ago • 3 comments

Describe the bug otlphttp export metric lost resource attributes

Steps to reproduce when use otlphttp export metric, there has no resource attributes

What did you expect to see? when use otlphttp export metric, want the resource attributes

What did you see instead? when use otlphttp export metric, there has no resource attributes

What version did you use? 0.98.0

What config did you use?

Environment

Additional context

halleystar avatar Apr 13 '24 08:04 halleystar

@halleystar are you saying that data exported by the otlphttpexporter have no resource attributes or that the metrics emitted by the otlphttpexporter don't have resource attributes?

TylerHelmuth avatar Apr 16 '24 19:04 TylerHelmuth

When I export metrics using otlphttpexporter, there is no resource attribute in the metric labels

halleystar avatar Apr 17 '24 01:04 halleystar

Please add the debugexporter with verbosity: detailed and check in the collector logs if you have resource attributes.

TylerHelmuth avatar Apr 17 '24 02:04 TylerHelmuth