Skip to content

Commit

Permalink
resolving issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Aug 13, 2020
1 parent 7dc1203 commit 3f73d5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion api/include/opentelemetry/trace/default_span.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class DefaultSpan : public Span

void AddEvent(nostd::string_view name,
core::SystemTimestamp timestamp,
const KeyValueIterable &attributes) noexcept {}
const KeyValueIterable &attributes) noexcept
{}

void AddEvent(nostd::string_view name, const KeyValueIterable &attributes) noexcept
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ class HttpTraceContext : public HTTPTextFormat<T>
static TraceId GenerateTraceIdFromString(nostd::string_view trace_id)
{
const char *trc_id = trace_id.begin();
uint8_t buf[kTraceIdBytes/2];
uint8_t buf[kTraceIdBytes / 2];
int tmp;
for (int i = 0; i < kTraceIdBytes; i++)
{
tmp = CharToInt(*trc_id);
if (tmp < 0)
{
for (int j = 0; j < kTraceIdBytes/2; j++)
for (int j = 0; j < kTraceIdBytes / 2; j++)
{
buf[j] = 0;
}
Expand All @@ -124,14 +124,14 @@ class HttpTraceContext : public HTTPTextFormat<T>
static SpanId GenerateSpanIdFromString(nostd::string_view span_id)
{
const char *spn_id = span_id.begin();
uint8_t buf[kSpanIdBytes/2];
uint8_t buf[kSpanIdBytes / 2];
int tmp;
for (int i = 0; i < kSpanIdBytes; i++)
{
tmp = CharToInt(*spn_id);
if (tmp < 0)
{
for (int j = 0; j < kSpanIdBytes/2; j++)
for (int j = 0; j < kSpanIdBytes / 2; j++)
{
buf[j] = 0;
}
Expand Down

0 comments on commit 3f73d5d

Please sign in to comment.