Method: Honeycomb::Client#add_field_to_trace

Defined in:
lib/honeycomb/client.rb

#add_field_to_trace(key, value) ⇒ Object



81
82
83
84
85
# File 'lib/honeycomb/client.rb', line 81

def add_field_to_trace(key, value)
  return if context.current_span.nil?

  context.current_span.trace.add_field("app.#{key}", value)
end