Skip to content

Commit

Permalink
tracer workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Jul 30, 2020
1 parent 8245e6a commit 0442a52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/test/trace/propagation/http_text_format_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ TEST(HTTPTextFormatTest, TraceFlagsBufferGeneration)
TEST(HTTPTextFormatTest, HeadersWithTraceState)
{
const std::map<std::string,std::string> carrier = {{"traceparent","00-4bf92f3577b34da6a3ce929d0e0e4736-0102030405060708-01"},{"tracestate","congo=congosSecondPosition,rojo=rojosFirstPosition"}};
context::Context ctx2 = format.Extract(Getter,carrier,context::Context("current-span",nostd::shared_ptr<trace::Span>(new trace::DefaultSpan())));
nostd::shared_ptr<trace::Span> sp{new trace::DefaultSpan()};
context::Context ctx2 = format.Extract(Getter,carrier,context::Context("current-span",sp));
std::map<std::string,std::string> c2 = {};
format.Inject(Setter,c2,ctx2);
EXPECT_EQ(c2["traceparent"],"00-4bf92f3577b34da6a3ce929d0e0e4736-0102030405060708-01");
Expand Down

0 comments on commit 0442a52

Please sign in to comment.