add header setter

This commit is contained in:
Simon Larsen
2023-11-12 14:24:27 +00:00
parent 2b2f9a74b6
commit d8d5556f1a
13 changed files with 84 additions and 58 deletions

View File

@@ -56,6 +56,8 @@ builder.Services.AddOpenTelemetry()
opt.Endpoint = new Uri(endpoint);
// Set headers in OTLP exporter
opt.Headers = "oneuptime-service-token=0a00ebc0-7f39-11ee-ac8c-3fb43926b224";
}
System.Console.WriteLine($"OTLP Exporter is using {opt.Protocol} protocol and endpoint {opt.Endpoint}");

View File

@@ -16,3 +16,7 @@
2.0
2.0
2.0
2.0
2.0
2.0
2.0