Skip to content

Commit

Permalink
tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Aug 1, 2020
1 parent 427030a commit d8bbd52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdk/src/trace/span.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ class Span final : public trace_api::Span

bool IsRecording() const noexcept override;

trace_api::Tracer &tracer() const noexcept override { return *tracer_; }
trace_api::SpanContext GetContext() const noexcept {
return span_context_;
}
// trace_api::Tracer &tracer() const noexcept override { return *tracer_; }

private:
std::shared_ptr<trace_api::Tracer> tracer_;
Expand Down

0 comments on commit d8bbd52

Please sign in to comment.