Skip to content

Commit

Permalink
tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Jul 31, 2020
1 parent c2952e8 commit 1f0d5e7
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,10 +68,11 @@ class DefaultSpan: public Span {
DefaultSpan(const DefaultSpan& spn) : span_context_(spn.GetContext()) {}

trace::Tracer &tracer() const noexcept {
return trace::DefaultTracer();
return tracer_;
}

private:
trace::Tracer tracer_;
SpanContext span_context_;
};
}
Expand Down

0 comments on commit 1f0d5e7

Please sign in to comment.