Class: StackifyRubyAPM::Context Private

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



20
21
22
23
24
# File 'lib/stackify_apm/context.rb', line 20

def initialize
  @custom = {}
  @tags = {}
  @prefix = Context::Prefix.new
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.



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

def aws
  @aws
end

#categoryObject

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.



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

def category
  @category
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.



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

def custom
  @custom
end

#prefixObject

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.



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

def prefix
  @prefix
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.



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

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.



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

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.



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

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



29
30
31
# File 'lib/stackify_apm/context.rb', line 29

def add_aws_context ctx
  @aws = ctx
end