We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a7628d commit 241485fCopy full SHA for 241485f
api/include/opentelemetry/trace/propagation/http_trace_context.h
@@ -182,7 +182,8 @@ class HttpTraceContext : public context::propagation::TextMapPropagator
182
183
static SpanContext ExtractImpl(const context::propagation::TextMapCarrier &carrier)
184
{
185
- nostd::string_view trace_parent = carrier.Get(kTraceParent);
+ // Get trace_parent after trimming the leading and trailing whitespaces
186
+ nostd::string_view trace_parent = detail::TrimString(carrier.Get(kTraceParent));
187
nostd::string_view trace_state = carrier.Get(kTraceState);
188
if (trace_parent == "")
189
0 commit comments