Skip to content

Commit

Permalink
removed tracer from all span classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Aug 19, 2020
1 parent 466d4f3 commit c5164c9
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 39 deletions.
1 change: 0 additions & 1 deletion api/include/opentelemetry/trace/noop.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class NoopSpan final : public Span
bool IsRecording() const noexcept override { return false; }

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

void SetToken(nostd::unique_ptr<context::Token> && /* token */) noexcept override {}

Expand Down
3 changes: 0 additions & 3 deletions api/include/opentelemetry/trace/span.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ class Span
// AddEvent).
virtual bool IsRecording() const noexcept = 0;

// Cannot have Tracer in Span right now because it will cause cyclical dependency issue
// virtual Tracer &tracer() const noexcept = 0;

virtual void SetToken(nostd::unique_ptr<context::Token> &&token) noexcept = 0;
};
} // namespace trace
Expand Down
1 change: 0 additions & 1 deletion api/test/trace/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
foreach(
testname
key_value_iterable_view_test
noop_test
provider_test
span_id_test
trace_id_test
Expand Down
32 changes: 0 additions & 32 deletions api/test/trace/noop_test.cc

This file was deleted.

1 change: 0 additions & 1 deletion examples/plugin/plugin/tracer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class Span final : public trace::Span
bool IsRecording() const noexcept override { return true; }

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

void SetToken(nostd::unique_ptr<context::Token> &&token) noexcept override {}

Expand Down
1 change: 0 additions & 1 deletion sdk/src/trace/span.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class Span final : public trace_api::Span
bool IsRecording() const noexcept override;

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

void SetToken(nostd::unique_ptr<context::Token> &&token) noexcept override;

Expand Down

0 comments on commit c5164c9

Please sign in to comment.