Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek committed Apr 10, 2024
1 parent cdbe3b0 commit b45be34
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ public class OtlpExporterOptions : IOtlpExporterOptions

internal readonly Func<HttpClient> DefaultHttpClientFactory;

private const string UserAgentProduct = "OTel-OTLP-Exporter-Dotnet";

private OtlpExportProtocol? protocol;
private Uri? endpoint;
private int? timeoutMilliseconds;
Expand Down Expand Up @@ -226,15 +224,8 @@ internal OtlpExporterOptions ApplyDefaults(OtlpExporterOptions defaultExporterOp

private static string GetUserAgentString()
{
try
{
var assembly = typeof(OtlpExporterOptions).Assembly;
return $"{UserAgentProduct}/{assembly.GetPackageVersion()}";
}
catch (Exception)
{
return UserAgentProduct;
}
var assembly = typeof(OtlpExporterOptions).Assembly;
return $"OTel-OTLP-Exporter-Dotnet/{assembly.GetPackageVersion()}";
}

private void ApplyConfiguration(
Expand Down

0 comments on commit b45be34

Please sign in to comment.