Skip to content

Commit

Permalink
tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Jul 30, 2020
1 parent 78c4158 commit 77ca5ca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/include/opentelemetry/trace/default_span.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#include "opentelemetry/trace/canonical_code.h"
#include "opentelemetry/common/attribute_value.h"
#include "opentelemetry/trace/span.h"
#include "opentelemetry/trace/default_tracer.h"

#define pass
OPENTELEMETRY_BEGIN_NAMESPACE
class DefaultTracer;
namespace trace {
class DefaultSpan: public Span {
public:
Expand Down Expand Up @@ -67,9 +67,8 @@ 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 {
return DefaultTracer(); // Invalid tracer
return DefaultTracer();
}

private:
Expand Down

0 comments on commit 77ca5ca

Please sign in to comment.