From 8847e1a0ed2a1de138d70e8d08295201e2eb264f Mon Sep 17 00:00:00 2001 From: Garth Kidd Date: Wed, 24 Mar 2021 17:10:38 +1100 Subject: [PATCH] Fix bug preventing configuring span processors. --- apps/opentelemetry/src/otel_configuration.erl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/opentelemetry/src/otel_configuration.erl b/apps/opentelemetry/src/otel_configuration.erl index c31bc95b..39c71225 100644 --- a/apps/opentelemetry/src/otel_configuration.erl +++ b/apps/opentelemetry/src/otel_configuration.erl @@ -107,15 +107,14 @@ config_mappings(otel_batch_processor) -> {"OTEL_TRACES_EXPORTER", exporter, "otlp", exporter} %% the following are not supported yet %% {"OTEL_BSP_MAX_EXPORT_BATCH_SIZE", max_export_batch_size, 512} - ]. - + ]; %% span limit not supported %% config_mappings(span_limits) -> %% [{"OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT", attribute_count_limit, 1000, integer}, %% {"OTEL_SPAN_EVENT_COUNT_LIMIT", event_count_limit, 1000, integer}, %% {"OTEL_SPAN_LINK_COUNT_LIMIT", link_count_limit 1000, integer}]; -%% config_mappings(_) -> -%% []. +config_mappings(_) -> + []. transform(_, undefined) -> undefined;