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 7580adb commit 544855b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/include/opentelemetry/trace/span_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ class SpanContext final

static SpanContext GetInvalid() { return SpanContext(); }

bool IsSampled() const noexcept { return trace_flags_.IsSampled(); }

private:
TraceId trace_id_;
SpanId span_id_;
Expand Down

0 comments on commit 544855b

Please sign in to comment.