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 acdf179 commit a6c150b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions api/include/opentelemetry/plugin/detail/tracer_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ class TracerHandle
{
public:
virtual ~TracerHandle() = default;

virtual trace::Tracer &tracer() const noexcept = 0;
};
} // namespace plugin
OPENTELEMETRY_END_NAMESPACE
5 changes: 0 additions & 5 deletions api/include/opentelemetry/trace/default_span.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,7 @@ class DefaultSpan: public Span {
DefaultSpan(DefaultSpan&& spn) : span_context_(spn.GetContext()) {}
DefaultSpan(const DefaultSpan& spn) : span_context_(spn.GetContext()) {}

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

private:
trace::DefaultTracer tracer_;
SpanContext span_context_;
};
}
Expand Down
2 changes: 0 additions & 2 deletions api/include/opentelemetry/trace/span.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ class Span
// Returns true if this Span is recording tracing events (e.g. SetAttribute,
// AddEvent).
virtual bool IsRecording() const noexcept = 0;

virtual trace::Tracer &tracer() const noexcept = 0;
};
} // namespace trace
OPENTELEMETRY_END_NAMESPACE

0 comments on commit a6c150b

Please sign in to comment.