Skip to content

Commit de933f9

Browse files
authored
use otel_warn
1 parent 9ddba91 commit de933f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

opentelemetry-sdk/src/propagation/baggage.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use once_cell::sync::Lazy;
22
use opentelemetry::{
33
baggage::{BaggageExt, KeyValueMetadata},
4-
otel_error,
4+
otel_warn,
55
propagation::{text_map_propagator::FieldIter, Extractor, Injector, TextMapPropagator},
66
Context,
77
};
@@ -119,23 +119,23 @@ impl TextMapPropagator for BaggagePropagator {
119119
decoded_props.as_str(),
120120
))
121121
} else {
122-
otel_error!(
122+
otel_warn!(
123123
name: "BaggagePropagator.Extract.InvalidUTF8",
124124
message = "Invalid UTF8 string in key values",
125125
baggage_header = header_value,
126126
);
127127
None
128128
}
129129
} else {
130-
otel_error!(
130+
otel_warn!(
131131
name: "BaggagePropagator.Extract.InvalidKeyValueFormat",
132132
message = "Invalid baggage key-value format",
133133
baggage_header = header_value,
134134
);
135135
None
136136
}
137137
} else {
138-
otel_error!(
138+
otel_warn!(
139139
name: "BaggagePropagator.Extract.InvalidFormat",
140140
message = "Invalid baggage format",
141141
baggage_header = header_value);

0 commit comments

Comments
 (0)