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

OTLP exporter add User-Agent header #4120

Merged
merged 9 commits into from
Feb 1, 2023

Conversation

alanwest
Copy link
Member

Fixes #3724

@alanwest alanwest requested a review from a team January 31, 2023 00:44
Copy link
Member

@cijothomas cijothomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left couple of small comments.

@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Merging #4120 (6f04561) into main (1f096cb) will decrease coverage by 0.02%.
The diff coverage is 83.33%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4120      +/-   ##
==========================================
- Coverage   85.57%   85.56%   -0.02%     
==========================================
  Files         293      293              
  Lines       11359    11371      +12     
==========================================
+ Hits         9721     9730       +9     
- Misses       1638     1641       +3     
Impacted Files Coverage Δ
...pendencyInjectionMeterProviderBuilderExtensions.cs 100.00% <ø> (ø)
...encyInjectionMetricsServiceCollectionExtensions.cs 100.00% <ø> (ø)
...endencyInjectionTracerProviderBuilderExtensions.cs 100.00% <ø> (ø)
...encyInjectionTracingServiceCollectionExtensions.cs 100.00% <ø> (ø)
...orter.OpenTelemetryProtocol/OtlpExporterOptions.cs 96.36% <80.00%> (-3.64%) ⬇️
...TelemetryProtocol/OtlpExporterOptionsExtensions.cs 96.80% <100.00%> (+0.06%) ⬆️
...tation/OpenTelemetryProtocolExporterEventSource.cs 75.00% <0.00%> (-10.00%) ⬇️
src/OpenTelemetry/BatchExportProcessor.cs 82.24% <0.00%> (-1.87%) ⬇️
...emetry.Api/Internal/OpenTelemetryApiEventSource.cs 82.35% <0.00%> (+2.94%) ⬆️
...p/Implementation/HttpInstrumentationEventSource.cs 76.00% <0.00%> (+4.00%) ⬆️
... and 1 more

@alanwest alanwest merged commit c0f927f into open-telemetry:main Feb 1, 2023
@alanwest alanwest deleted the alanwest/otlp-user-agent branch February 1, 2023 04:39
Comment on lines +211 to +212
var assemblyName = typeof(OtlpExporterOptions).Assembly.GetName();
return assemblyName.Version;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO it would be better to use either the assembly file version (blue) or even better the assembly informational version (green) instead of the assembly version (red) as it's much more granular:

image

I'd be happy to submit a PR to do that if people agree.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened #4143.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OTLP exporters should emit standard user agent string
6 participants