fix inheriting baggage from parent span
This commit is contained in:
Родитель
f932dd14f6
Коммит
5cc9b24380
|
@ -11,7 +11,7 @@ module LightStep
|
|||
|
||||
# Internal use only
|
||||
# @private
|
||||
attr_reader :start_micros, :end_micros, :baggage, :tags, :operation_name, :span_context
|
||||
attr_reader :start_micros, :end_micros, :tags, :operation_name, :span_context
|
||||
|
||||
# Creates a new {Span}
|
||||
#
|
||||
|
@ -78,6 +78,11 @@ module LightStep
|
|||
)
|
||||
end
|
||||
|
||||
# Returns the baggage associated with the span
|
||||
def baggage
|
||||
@span_context.nil? ? {} : @span_context.baggage
|
||||
end
|
||||
|
||||
# Get a baggage item
|
||||
# @param key [String] the key of the baggage item
|
||||
# @return Value of the baggage item
|
||||
|
|
Загрузка…
Ссылка в новой задаче