Add OTLP logs layer (#5386)

This commit is contained in:
dorien-koelemeijer
2025-10-30 08:06:41 +10:00
committed by GitHub
parent 3654a48000
commit d25372c7e2
5 changed files with 69 additions and 4 deletions
+8 -1
View File
@@ -102,7 +102,9 @@ fn setup_logging_internal(
}
if !force {
if let Ok((otlp_tracing_layer, otlp_metrics_layer)) = otlp_layer::init_otlp() {
if let Ok((otlp_tracing_layer, otlp_metrics_layer, otlp_logs_layer)) =
otlp_layer::init_otlp()
{
layers.push(
otlp_tracing_layer
.with_filter(otlp_layer::create_otlp_tracing_filter())
@@ -113,6 +115,11 @@ fn setup_logging_internal(
.with_filter(otlp_layer::create_otlp_metrics_filter())
.boxed(),
);
layers.push(
otlp_logs_layer
.with_filter(otlp_layer::create_otlp_logs_filter())
.boxed(),
);
}
}