Class: StackifyRubyAPM::Context Private

Inherits:
Object
  • Object
show all
Includes:
NaivelyHashable
Defined in:
lib/stackify_apm/context.rb,
lib/stackify_apm/context/request.rb,
lib/stackify_apm/context/response.rb,
lib/stackify_apm/context/request/url.rb,
lib/stackify_apm/context/request/socket.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.

Defined Under Namespace

Classes: Request, Response

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from NaivelyHashable

#naively_hashable?, #to_h

Constructor Details

#initializeContext

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 Context.



18
19
20
21
# File 'lib/stackify_apm/context.rb', line 18

def initialize
  @custom = {}
  @tags = {}
end

Instance Attribute Details

#awsObject

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.



15
16
17
# File 'lib/stackify_apm/context.rb', line 15

def aws
  @aws
end

#customObject (readonly)

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.



16
17
18
# File 'lib/stackify_apm/context.rb', line 16

def custom
  @custom
end

#requestObject

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.



15
16
17
# File 'lib/stackify_apm/context.rb', line 15

def request
  @request
end

#responseObject

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.



15
16
17
# File 'lib/stackify_apm/context.rb', line 15

def response
  @response
end

#tagsObject (readonly)

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.



16
17
18
# File 'lib/stackify_apm/context.rb', line 16

def tags
  @tags
end

Instance Method Details

#add_aws_context(ctx) ⇒ 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.

add aws context to context instance

values arn



26
27
28
# File 'lib/stackify_apm/context.rb', line 26

def add_aws_context ctx
  @aws = ctx
end