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
`Invalid configuration for OTLPAwsLogExporter, please configure the environment variable OTEL_EXPORTER_OTLP_LOGS_HEADERS to have values for ${AWS_OTLP_LOGS_GROUP_HEADER} and ${AWS_OTLP_LOGS_STREAM_HEADER}. Falling back to OTLPProtoLogExporter`
579
+
);
580
+
}
582
581
}
582
+
583
+
if(!logExporter){
584
+
logExporter=newOTLPProtoLogExporter();
585
+
}
586
+
exporters.push(logExporter);
583
587
break;
588
+
}
584
589
caseundefined:
585
590
case'':
586
591
exporters.push(newOTLPProtoLogExporter());
587
592
break;
588
-
default:
593
+
default:{
589
594
diag.warn(`Unsupported OTLP logs protocol: "${protocol}". Using http/protobuf.`);
`Invalid configuration for OTLPAwsLogExporter, please configure the environment variable OTEL_EXPORTER_OTLP_LOGS_HEADERS to have values for ${AWS_OTLP_LOGS_GROUP_HEADER} and ${AWS_OTLP_LOGS_STREAM_HEADER}. Falling back to OTLPProtoLogExporter`
605
+
);
606
+
}
607
+
}
608
+
609
+
if(!logExporter){
610
+
logExporter=newOTLPProtoLogExporter();
603
611
}
612
+
exporters.push(logExporter);
613
+
}
604
614
}
605
615
}elseif(exporter==='console'){
606
616
exporters.push(newConsoleLogRecordExporter());
@@ -973,7 +983,6 @@ export function validateAndFetchLogsHeader(): OtlpLogHeaderSetting {
973
983
letlogGroup: string|undefined=undefined;
974
984
letlogStream: string|undefined=undefined;
975
985
letnamespace: string|undefined=undefined;
976
-
letfilteredLogHeadersCount: number=0;
977
986
978
987
for(constpairoflogHeaders.split(',')){
979
988
constsplitIndex=pair.indexOf('=');
@@ -983,23 +992,15 @@ export function validateAndFetchLogsHeader(): OtlpLogHeaderSetting {
0 commit comments