mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Fix OTLP exporter configuration
This commit is contained in:
@@ -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}");
|
||||
|
||||
}));
|
||||
|
||||
@@ -8,3 +8,9 @@ Please use
|
||||
export OTEL_EXPORTER_OTLP_HEADERS="x-oneuptime-service-token=9c8806e0-a4aa-11ee-be95-010d5967b068" && export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost" && dotnet run --urls=http://localhost:7856/
|
||||
```
|
||||
|
||||
### Run on test server
|
||||
|
||||
```bash
|
||||
export OTEL_EXPORTER_OTLP_HEADERS="x-oneuptime-service-token=41505e10-a7d6-11ee-b9c3-4f66c767c922" && export OTEL_EXPORTER_OTLP_ENDPOINT="https://test-otlp.oneuptime.com" && dotnet run --urls=http://localhost:7856/
|
||||
```
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -59,3 +59,8 @@
|
||||
2.0
|
||||
2.0
|
||||
2.0
|
||||
2.0
|
||||
2.0
|
||||
2.0
|
||||
2.0
|
||||
2.0
|
||||
|
||||
Reference in New Issue
Block a user