Class: StackifyRubyAPM::ContextBuilder Private

Inherits:
Object
  • Object
show all
Defined in:
lib/stackify_apm/context_builder.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(_agent) ⇒ ContextBuilder

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ContextBuilder.



9
# File 'lib/stackify_apm/context_builder.rb', line 9

def initialize(_agent); end

Instance Method Details

#build(rack_env) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Creates context



13
14
15
16
17
# File 'lib/stackify_apm/context_builder.rb', line 13

def build(rack_env)
  context = Context.new
  apply_to_request(context, rack_env)
  context
end