Class: ElasticAPM::Span::Context Private
- Inherits:
-
Object
- Object
- ElasticAPM::Span::Context
- Defined in:
- lib/elastic_apm/span/context.rb,
lib/elastic_apm/span/context/db.rb,
lib/elastic_apm/span/context/http.rb,
lib/elastic_apm/span/context/message.rb,
lib/elastic_apm/span/context/destination.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: Db, Destination, Http, Message
Instance Attribute Summary collapse
- #db ⇒ Object readonly private
- #destination ⇒ Object private
- #http ⇒ Object readonly private
- #labels ⇒ Object readonly private
- #message ⇒ Object readonly private
- #sync ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(db: nil, destination: nil, http: nil, labels: {}, sync: nil, message: nil) ⇒ Context
constructor
private
A new instance of Context.
Constructor Details
#initialize(db: nil, destination: nil, http: nil, labels: {}, sync: nil, message: 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.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/elastic_apm/span/context.rb', line 24 def initialize( db: nil, destination: nil, http: nil, labels: {}, sync: nil, message: nil ) @sync = sync @db = db && Db.new(**db) @http = http && Http.new(**http) @destination = case destination when Destination then destination when Hash then Destination.new(**destination) end = case when Message then when Hash then Message.new(**) end @labels = labels end |
Instance Attribute Details
#db ⇒ 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.
48 49 50 |
# File 'lib/elastic_apm/span/context.rb', line 48 def db @db end |
#destination ⇒ 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.
56 57 58 |
# File 'lib/elastic_apm/span/context.rb', line 56 def destination @destination end |
#http ⇒ 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.
48 49 50 |
# File 'lib/elastic_apm/span/context.rb', line 48 def http @http end |
#labels ⇒ 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.
48 49 50 |
# File 'lib/elastic_apm/span/context.rb', line 48 def labels @labels end |
#message ⇒ 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.
48 49 50 |
# File 'lib/elastic_apm/span/context.rb', line 48 def end |
#sync ⇒ 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.
48 49 50 |
# File 'lib/elastic_apm/span/context.rb', line 48 def sync @sync end |