Comment out OTLP exporter configuration

This commit is contained in:
Simon Larsen
2023-12-31 15:11:37 +00:00
parent 8b8caed4ac
commit d6d674510d
6 changed files with 4 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ builder.Logging.AddOpenTelemetry(logging =>
.AddConsoleExporter()
.AddOtlpExporter(opt =>
{
opt.Protocol = OpenTelemetry.Exporter.OtlpExportProtocol.HttpProtobuf;
// opt.Protocol = OpenTelemetry.Exporter.OtlpExportProtocol.HttpProtobuf;
System.Console.WriteLine($"OTLP Exporter is using {opt.Protocol} protocol and endpoint {opt.Endpoint}");
});
});
@@ -42,7 +42,7 @@ builder.Services.AddOpenTelemetry()
.AddConsoleExporter()
.AddOtlpExporter(opt =>
{
opt.Protocol = OpenTelemetry.Exporter.OtlpExportProtocol.HttpProtobuf;
// opt.Protocol = OpenTelemetry.Exporter.OtlpExportProtocol.HttpProtobuf;
System.Console.WriteLine($"OTLP Exporter is using {opt.Protocol} protocol and endpoint {opt.Endpoint}");
}));
@@ -64,7 +64,7 @@ builder.Services.AddOpenTelemetry()
})
.AddOtlpExporter(opt =>
{
opt.Protocol = OpenTelemetry.Exporter.OtlpExportProtocol.HttpProtobuf;
// opt.Protocol = OpenTelemetry.Exporter.OtlpExportProtocol.HttpProtobuf;
System.Console.WriteLine($"OTLP Exporter is using {opt.Protocol} protocol and endpoint {opt.Endpoint}");
}));

View File

@@ -64,3 +64,4 @@
2.0
2.0
2.0
2.0