Skip to content

Commit

Permalink
span context added back empty constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Aug 5, 2020
1 parent d774328 commit 99be4b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/include/opentelemetry/trace/span_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ class SpanContext final
{
public:
// An invalid SpanContext.
SpanContext() noexcept
: trace_flags_(trace::TraceFlags((uint8_t)sampled_flag)),
race_state_(new TraceState),
emote_parent_(has_remote_parent){};

SpanContext(bool sampled_flag, bool has_remote_parent) noexcept
: trace_flags_(trace::TraceFlags((uint8_t)sampled_flag)),
trace_state_(new TraceState),
Expand Down

0 comments on commit 99be4b7

Please sign in to comment.