lib/opentelemetry/trace/span_context.rb in opentelemetry-api-0.10.0 vs lib/opentelemetry/trace/span_context.rb in opentelemetry-api-0.11.0
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-# Copyright 2019 OpenTelemetry Authors
+# Copyright The OpenTelemetry Authors
#
# SPDX-License-Identifier: Apache-2.0
module OpenTelemetry
module Trace
@@ -16,17 +16,17 @@
# Returns a new {SpanContext}.
#
# @param [optional String] trace_id The trace ID associated with a {Span}.
# @param [optional String] span_id The span ID associated with a {Span}.
# @param [optional TraceFlags] trace_flags The trace flags associated with a {Span}.
- # @param [optional String] tracestate The tracestate associated with a {Span}. May be nil.
+ # @param [optional Tracestate] tracestate The tracestate associated with a {Span}. May be nil.
# @param [optional Boolean] remote Whether the {SpanContext} was extracted from the wire.
# @return [SpanContext]
def initialize(
trace_id: Trace.generate_trace_id,
span_id: Trace.generate_span_id,
trace_flags: TraceFlags::DEFAULT,
- tracestate: nil,
+ tracestate: Tracestate::DEFAULT,
remote: false
)
@trace_id = trace_id
@span_id = span_id
@trace_flags = trace_flags