From de933f9227e384057b086e86b7c32d7e63b16a6b Mon Sep 17 00:00:00 2001 From: Lalit Kumar Bhasin Date: Sat, 26 Oct 2024 12:35:41 -0700 Subject: [PATCH] use otel_warn --- opentelemetry-sdk/src/propagation/baggage.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opentelemetry-sdk/src/propagation/baggage.rs b/opentelemetry-sdk/src/propagation/baggage.rs index c319c549ab..35567b4b4b 100644 --- a/opentelemetry-sdk/src/propagation/baggage.rs +++ b/opentelemetry-sdk/src/propagation/baggage.rs @@ -1,7 +1,7 @@ use once_cell::sync::Lazy; use opentelemetry::{ baggage::{BaggageExt, KeyValueMetadata}, - otel_error, + otel_warn, propagation::{text_map_propagator::FieldIter, Extractor, Injector, TextMapPropagator}, Context, }; @@ -119,7 +119,7 @@ impl TextMapPropagator for BaggagePropagator { decoded_props.as_str(), )) } else { - otel_error!( + otel_warn!( name: "BaggagePropagator.Extract.InvalidUTF8", message = "Invalid UTF8 string in key values", baggage_header = header_value, @@ -127,7 +127,7 @@ impl TextMapPropagator for BaggagePropagator { None } } else { - otel_error!( + otel_warn!( name: "BaggagePropagator.Extract.InvalidKeyValueFormat", message = "Invalid baggage key-value format", baggage_header = header_value, @@ -135,7 +135,7 @@ impl TextMapPropagator for BaggagePropagator { None } } else { - otel_error!( + otel_warn!( name: "BaggagePropagator.Extract.InvalidFormat", message = "Invalid baggage format", baggage_header = header_value);