Class: ElasticAPM::Context Private
- Inherits:
-
Object
- Object
- ElasticAPM::Context
- 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
- #custom ⇒ Object readonly private
- #request ⇒ Object private
- #response ⇒ Object private
- #tags ⇒ Object readonly private
- #user ⇒ Object private
Instance Method Summary collapse
-
#initialize(custom: {}, tags: {}, user: nil) ⇒ Context
constructor
private
A new instance of Context.
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 = @user = user || User.new end |
Instance Attribute Details
#custom ⇒ Object (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 |
#request ⇒ 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.
12 13 14 |
# File 'lib/elastic_apm/context.rb', line 12 def request @request end |
#response ⇒ 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.
12 13 14 |
# File 'lib/elastic_apm/context.rb', line 12 def response @response end |
#tags ⇒ Object (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 end |
#user ⇒ 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.
12 13 14 |
# File 'lib/elastic_apm/context.rb', line 12 def user @user end |