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 c0c33dd commit cd057c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/include/opentelemetry/trace/default_span.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class DefaultSpan: public Span {
DefaultSpan(DefaultSpan&& spn) : span_context_(spn.GetContext()) {}
DefaultSpan(const DefaultSpan& spn) : span_context_(spn.GetContext()) {}

// This is an invalid implementation
trace::Tracer &tracer() const noexcept {
trace::Tracer tracer = trace::Tracer();
return tracer; // Invalid tracer
Expand Down

0 comments on commit cd057c4

Please sign in to comment.