Class: Atatus::Span::Context Private
- Inherits:
-
Object
- Object
- Atatus::Span::Context
- Defined in:
- lib/atatus/span/context.rb,
lib/atatus/span/context/db.rb,
lib/atatus/span/context/http.rb,
lib/atatus/span/context/links.rb,
lib/atatus/span/context/message.rb,
lib/atatus/span/context/service.rb,
lib/atatus/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, Links, Message, Service
Instance Attribute Summary collapse
- #db ⇒ Object readonly private
- #destination ⇒ Object private
- #http ⇒ Object readonly private
- #labels ⇒ Object readonly private
- #links ⇒ Object readonly private
- #message ⇒ Object readonly private
- #service ⇒ Object private
- #sync ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(db: nil, destination: nil, http: nil, labels: {}, sync: nil, message: nil, service: nil, links: nil) ⇒ Context
constructor
private
A new instance of Context.
Constructor Details
#initialize(db: nil, destination: nil, http: nil, labels: {}, sync: nil, message: nil, service: nil, links: 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 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/atatus/span/context.rb', line 24 def initialize( db: nil, destination: nil, http: nil, labels: {}, sync: nil, message: nil, service: nil, links: 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 @message = case when Message then when Hash then Message.new(**) end @labels = labels @service = case service when Service then service when Hash then Service.new(**service) end @links = case links when Links then links when Array then Links.new(links) end 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.
60 61 62 |
# File 'lib/atatus/span/context.rb', line 60 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.
69 70 71 |
# File 'lib/atatus/span/context.rb', line 69 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.
60 61 62 |
# File 'lib/atatus/span/context.rb', line 60 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.
60 61 62 |
# File 'lib/atatus/span/context.rb', line 60 def labels @labels end |
#links ⇒ 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.
60 61 62 |
# File 'lib/atatus/span/context.rb', line 60 def links @links 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.
60 61 62 |
# File 'lib/atatus/span/context.rb', line 60 def @message end |
#service ⇒ 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.
69 70 71 |
# File 'lib/atatus/span/context.rb', line 69 def service @service 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.
60 61 62 |
# File 'lib/atatus/span/context.rb', line 60 def sync @sync end |