Skip to content

Commit

Permalink
tracer workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Jul 29, 2020
1 parent af166aa commit 0c0ef2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/include/opentelemetry/trace/default_span.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +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 {
trace::Tracer &tracer() noexcept {
return tracer_; // Invalid tracer
}

Expand Down
2 changes: 1 addition & 1 deletion api/include/opentelemetry/trace/span.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class Span

// TODO
// SpanContext context() const noexcept = 0;
virtual trace::SpanContext GetContext() const noexcept = 0;
virtual trace::SpanContext GetContext() noexcept = 0;
// Returns true if this Span is recording tracing events (e.g. SetAttribute,
// AddEvent).
virtual bool IsRecording() const noexcept = 0;
Expand Down

0 comments on commit 0c0ef2a

Please sign in to comment.