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 29, 2020
1 parent d6d1935 commit 188fc2f
Showing 1 changed file with 2 additions and 1 deletion.
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 @@ -68,7 +68,8 @@ class DefaultSpan: public Span {
DefaultSpan(const DefaultSpan& spn) : span_context_(spn.GetContext()) {}

trace::Tracer &tracer() const noexcept {
return trace::Tracer(); // Invalid tracer
trace::Tracer tracer = trace::Tracer();
return tracer; // Invalid tracer
}

// Creates an instance of this class with spancontext.
Expand Down

0 comments on commit 188fc2f

Please sign in to comment.