Skip to content

[Bug]: opentelemetry-otlp inconsistency between http and grpc export endpoint for traces #1618

@bnjjj

Description

@bnjjj

What happened?

When using the http and grpc exporter for traces you have to fill the endpoint value but when using the http one you have to specify the /v1/traces path and not with the grpc one. You can see in your examples here and here it's both different. But under the hood it's configuring the struct ExportConfig and in the documentation for endpoint it's explicit that it should be the base address. So I think there is a bug in the configuration here.

To keep backward compatibility maybe it could be interesting to directly check if the address already contains /v1/traces we don't modify the URL.

API Version

0.13.0

SDK Version

0.13.0

What Exporters are you seeing the problem on?

OTLP

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriage:todoNeeds to be traiged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions