Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] OtlpExportProtocol.HttpProtobuf does not work #6049

Closed
domholmes opened this issue Jan 6, 2025 · 2 comments
Closed

[bug] OtlpExportProtocol.HttpProtobuf does not work #6049

domholmes opened this issue Jan 6, 2025 · 2 comments
Labels
pkg:OpenTelemetry.Exporter.OpenTelemetryProtocol Issues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package question Further information is requested

Comments

@domholmes
Copy link

Package

OpenTelemetry.Exporter.OpenTelemetryProtocol

Package Version

Runtime Version

net8.0

Description

Traces stop being exported when changing the protocol from gRPC to HttpProtobuf.

Steps to Reproduce

  1. Create a sample app that exports to the gRPC endpoint of an APM
  2. Run the application and verify data appears in the APM
  3. Change the protocol to HttpProtobuf and update the port to the APM's Http port
  4. Run the application again

Expected Result

Data continues to appear in the APM

Actual Result

Data stops appearing in the APM

Additional Context

Tested with both Jaeger and New Relic. Both work as expected with gRPC.
OtelLogTest.zip

@domholmes domholmes added bug Something isn't working needs-triage New issues which have not been classified or triaged by a community member labels Jan 6, 2025
@github-actions github-actions bot added the pkg:OpenTelemetry.Exporter.OpenTelemetryProtocol Issues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package label Jan 6, 2025
@rajkumar-rangaraj
Copy link
Contributor

rajkumar-rangaraj commented Jan 7, 2025

You might have missed adding /v1/traces to the endpoint when using HttpProtobuf. For example:

opt.Endpoint = new Uri("http://localhost:4318/v1/traces");

This path is not needed when using gRPC.

Doc link - https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry.Exporter.OpenTelemetryProtocol#otlpexporteroptions

@rajkumar-rangaraj rajkumar-rangaraj added question Further information is requested and removed bug Something isn't working needs-triage New issues which have not been classified or triaged by a community member labels Jan 7, 2025
@domholmes
Copy link
Author

You might have missed adding /v1/traces to the endpoint when using HttpProtobuf. For example:

opt.Endpoint = new Uri("http://localhost:4318/v1/traces");

This path is not needed when using gRPC.

Doc link - https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry.Exporter.OpenTelemetryProtocol#otlpexporteroptions

Ahhhh, this works. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:OpenTelemetry.Exporter.OpenTelemetryProtocol Issues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants