Skip to content

Commit

Permalink
use otel_warn
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb authored Oct 26, 2024
1 parent 9ddba91 commit de933f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions opentelemetry-sdk/src/propagation/baggage.rs
Original file line number Diff line number Diff line change
@@ -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,
};
Expand Down Expand Up @@ -119,23 +119,23 @@ 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,
);
None
}
} else {
otel_error!(
otel_warn!(
name: "BaggagePropagator.Extract.InvalidKeyValueFormat",
message = "Invalid baggage key-value format",
baggage_header = header_value,
);
None
}
} else {
otel_error!(
otel_warn!(
name: "BaggagePropagator.Extract.InvalidFormat",
message = "Invalid baggage format",
baggage_header = header_value);
Expand Down

0 comments on commit de933f9

Please sign in to comment.