Skip to content

Resource is not populated to OTLP proto data #757

@ThomsonTan

Description

@ThomsonTan

In previous PR #706, resource is passed to exporter recordable structure, but it is still not populated to proto::collector::trace::v1::ExportTraceServiceRequest, so the OTLP receiver will not get any resource from the OpenTelemetry C++ SDK.

Steps to reproduce
Run example_otlp and OpenTelemetry collector with OTLP collector.

What is the expected behavior?
We should see "Resource labels" in the receive data.

What is the actual behavior?
No "Resource labels" sent to OpenTelemetry collector.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions