Skip to content

Commit e901a36

Browse files
authored
Fix extracting TraceState from HttpTextMapCarrier (#738)
1 parent d8467a7 commit e901a36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/http/tracer_common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class HttpTextMapCarrier : public opentelemetry::context::propagation::TextMapCa
4747
}
4848
else if (key == opentelemetry::trace::propagation::kTraceState)
4949
{
50-
key_to_compare == "Tracestate";
50+
key_to_compare = "Tracestate";
5151
}
5252
auto it = headers_.find(key_to_compare);
5353
if (it != headers_.end())

0 commit comments

Comments
 (0)