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: src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExportProtocol.cs
+3
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,9 @@ public enum OtlpExportProtocol : byte
11
11
/// <summary>
12
12
/// OTLP over gRPC (corresponds to 'grpc' Protocol configuration option). Used as default.
13
13
/// </summary>
14
+
#if NET462_OR_GREATER||NETSTANDARD2_0
15
+
[Obsolete("CAUTION: OTLP/gRPC is no longer supported for .NET Framework or .NET Standard targets without supplying a properly configured HttpClientFactory. It is strongly encouraged that you migrate to using OTLP/HTTPPROTOBUF.")]
thrownewNotSupportedException($"Endpoint URI scheme ({options.Endpoint.Scheme}) is not supported. Currently only \"http\" and \"https\" are supported.");
@@ -129,25 +102,12 @@ public static IExportClient GetExportClient(this OtlpExporterOptions options, Ot
129
102
{
130
103
varhttpClient=options.HttpClientFactory?.Invoke()??thrownewInvalidOperationException("OtlpExporterOptions was missing HttpClientFactory or it returned null.");
0 commit comments