Skip to content

Commit

Permalink
added noop test to cover more lines of code -- for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Aug 21, 2020
1 parent ba2bfaa commit 1dfc9d7
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions api/include/opentelemetry/trace/propagation/http_trace_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,20 +181,11 @@ class HttpTraceContext : public HTTPTextFormat<T>
TraceFlags(span_context.trace_flags()).ToLowerBase16(trace_flags);
// Note: This is only temporary replacement for appendable string
std::string hex_string = "00-";
for (int i = 0; i < 32; i++)
{
hex_string.push_back(trace_id[i]);
}
hex_string.push_back('-');
for (int i = 0; i < 16; i++)
{
hex_string.push_back(span_id[i]);
}
hex_string.push_back('-');
for (int i = 0; i < 2; i++)
{
hex_string.push_back(trace_flags[i]);
}
hex_string += trace_id;
hex_string += '-';
hex_string += span_id;
hex_string += '-';
hex_string += trace_flags;
setter(carrier, kTraceParent, hex_string);
}

Expand Down

0 comments on commit 1dfc9d7

Please sign in to comment.