Class: ElasticAPM::Context Private

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic_apm/context.rb,
lib/elastic_apm/context/user.rb,
lib/elastic_apm/context/request.rb,
lib/elastic_apm/context/response.rb,
lib/elastic_apm/context/request/url.rb,
lib/elastic_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, User

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(custom: {}, tags: {}, user: nil) ⇒ Context

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.



15
16
17
18
19
# File 'lib/elastic_apm/context.rb', line 15

def initialize(custom: {}, tags: {}, user: nil)
  @custom = custom
  @tags = tags
  @user = user || User.new
end

Instance Attribute Details

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



13
14
15
# File 'lib/elastic_apm/context.rb', line 13

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.



12
13
14
# File 'lib/elastic_apm/context.rb', line 12

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.



12
13
14
# File 'lib/elastic_apm/context.rb', line 12

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.



13
14
15
# File 'lib/elastic_apm/context.rb', line 13

def tags
  @tags
end

#userObject

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.



12
13
14
# File 'lib/elastic_apm/context.rb', line 12

def user
  @user
end