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 c5f1f2d commit 77abce8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/include/opentelemetry/trace/span_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "opentelemetry/trace/trace_flags.h"
#include "opentelemetry/trace/trace_id.h"
#include "opentelemetry/trace/trace_state.h"
#include "opentelemetry/trace/span.h"

OPENTELEMETRY_BEGIN_NAMESPACE
namespace trace
Expand Down Expand Up @@ -71,6 +72,10 @@ class SpanContext final

static SpanContext GetInvalid() { return SpanContext(); }

nostd::unique_ptr<Span> test() {
return nostd::unique_ptr<Span>(new Span());
}

private:
TraceId trace_id_;
SpanId span_id_;
Expand Down

0 comments on commit 77abce8

Please sign in to comment.