-
Notifications
You must be signed in to change notification settings - Fork 790
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
Fix default URL for OTLP Trace/Metrics for http/protobuf #3098
Fix default URL for OTLP Trace/Metrics for http/protobuf #3098
Conversation
...metry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpHttpExportClient.cs
Outdated
Show resolved
Hide resolved
test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/IntegrationTests.cs
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## main #3098 +/- ##
==========================================
- Coverage 84.74% 84.64% -0.10%
==========================================
Files 259 259
Lines 9236 9228 -8
==========================================
- Hits 7827 7811 -16
- Misses 1409 1417 +8
|
🤔 the tests passed locally, need to look... ah, incorrect assumption of my part: I thought that these tests were running against the localhost and my setup used that, likely I need a better place to test this. |
I had a conversation with @pellared and will be updating the PR: I will be trying to remove the extension method that already does some checks regarding the path for the exporters. |
8d02672
to
ff5fbf6
Compare
...ry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpMetricsExportClient.cs
Outdated
Show resolved
Hide resolved
...etry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpTraceExportClient.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptionsExtensions.cs
Show resolved
Hide resolved
...ry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/OtlpHttpMetricsExportClient.cs
Outdated
Show resolved
Hide resolved
test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/BaseOtlpHttpExportClientTests.cs
Show resolved
Hide resolved
...metry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/BaseOtlpHttpExportClient.cs
Show resolved
Hide resolved
@pjanotti one conflict came another PR merge.. could you resolve that please? |
d50ea97
to
47485fe
Compare
47485fe
to
010307f
Compare
Done @cijothomas |
test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/BaseOtlpHttpExportClientTests.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a question about config precedence not really related specifically to this PR.
Thanks for the review @alanwest |
@pjanotti As as follow up, would you help modifying the examples to show how to use the http option? Anything else? |
Sure thing @cijothomas - I will run the examples locally and create a PR if needed. |
Changes
Setting only the protocol to
http/protobuf
wasn't enough to get the OTLP exporters, trace and metrics, sending to the correct endpoint. Setting the env var or the property directly works, but, it should just work by setting the protocol.