Logger: just use Basic + secret

This commit is contained in:
evanpelle
2025-09-11 21:28:03 -07:00
parent e26d164ef0
commit 50dd062945
+1 -3
View File
@@ -24,9 +24,7 @@ if (config.otelEnabled()) {
console.log("OTEL enabled");
// Configure OpenTelemetry endpoint with basic auth (if provided)
const headers: Record<string, string> = {};
// Remove "Basic" prefix from the auth header for backwards compatibility
headers["Authorization"] =
`Basic ${config.otelAuthHeader().replace("Basic", "").trim()}`;
headers["Authorization"] = "Basic " + config.otelAuthHeader();
// Add OTLP exporter for logs
const logExporter = new OTLPLogExporter({
url: `${config.otelEndpoint()}/v1/logs`,