You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ This component adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.h
13
13
- Support for [ASP.NET Core 10 metrics](https://learn.microsoft.com/en-us/aspnet/core/log-mon/metrics/built-in?view=aspnetcore-10.0).
14
14
- Support for ASP.NET Core 10 Blazor traces from
15
15
`Microsoft.AspNetCore.Components`
16
-
and `"Microsoft.AspNetCore.Components.Server.Circuits`.
16
+
and `Microsoft.AspNetCore.Components.Server.Circuits`.
17
17
- Experimental support for file-based configuration.
18
18
- Experimental support for configuration based instrumentation.
19
19
- IL rewrite for SqlCommand on .NET Framework to ensure `CommandText` is
@@ -102,6 +102,10 @@ and runtime, then loads the correct version of dependency assemblies.
102
102
See [#4269](https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/issues/4269)
103
103
for details.
104
104
- Fixed rule engine check for .NET 9 to reflect longer support for [STS channel](https://devblogs.microsoft.com/dotnet/dotnet-sts-releases-supported-for-24-months/).
105
+
- Fix bug in signal specific OTLP exporter variables: `OTEL_EXPORTER_OTLP_TRACES_PROTOCOL`,
106
+
`OTEL_EXPORTER_OTLP_METRICS_PROTOCOL` and `OTEL_EXPORTER_OTLP_LOGS_PROTOCOL`.
107
+
See [#4593](https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/issues/4593)
Logger.Warning($"OTLP protocol 'grpc' is not supported on .NET Framework in environment variable '{usedEnvVarName}'. Changing to 'http/protobuf' instead.");
180
+
returnOtlpExportProtocol.HttpProtobuf;
181
+
#else
182
+
returnOtlpExportProtocol.Grpc;
183
+
#endif
184
+
case"http/protobuf":
185
+
returnOtlpExportProtocol.HttpProtobuf;
186
+
default:
187
+
Logger.Warning($"Invalid OTLP protocol value '{exporterOtlpProtocol}' in environment variable '{usedEnvVarName}'. Supported values are 'grpc' and 'http/protobuf'. Defaulting to 'http/protobuf'.");
188
+
returnOtlpExportProtocol.HttpProtobuf;
189
+
}
168
190
}
169
191
170
-
// null value here means that it will be handled by OTEL .NET SDK
171
-
returnnull;
192
+
// In case of absent value, it will fall back to default value
Environment.SetEnvironmentVariable(AutoOtlpDefinitions.DefaultProtocolEnvVarName,unexpectedProtocolForDistraction);// set a different default to verify priority
Environment.SetEnvironmentVariable(AutoOtlpDefinitions.DefaultProtocolEnvVarName,unexpectedProtocolForDistraction);// set a different default to verify priority
Environment.SetEnvironmentVariable(AutoOtlpDefinitions.DefaultProtocolEnvVarName,unexpectedProtocolForDistraction);// set a different default to verify priority
0 commit comments