Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Dec 4, 2023
1 parent b999750 commit 14da5e6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sdk/src/trace/tracer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ nostd::shared_ptr<opentelemetry::trace::Span> Tracer::StartSpan(
auto span_context =
std::unique_ptr<opentelemetry::trace::SpanContext>(new opentelemetry::trace::SpanContext(
trace_id, span_id, trace_flags, false,
sampling_result.trace_state ? sampling_result.trace_state
: is_parent_span_valid ? parent_context.trace_state()
: opentelemetry::trace::TraceState::GetDefault()));
sampling_result.trace_state
? sampling_result.trace_state
: is_parent_span_valid ? parent_context.trace_state()
: opentelemetry::trace::TraceState::GetDefault()));

if (!sampling_result.IsRecording())
{
Expand Down

0 comments on commit 14da5e6

Please sign in to comment.