Class: Datadog::SyncWriter
- Inherits:
-
Object
- Object
- Datadog::SyncWriter
- Defined in:
- lib/ddtrace/sync_writer.rb
Overview
SyncWriter flushes both services and traces synchronously
Instance Attribute Summary collapse
-
#transport ⇒ Object
readonly
Returns the value of attribute transport.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SyncWriter
constructor
A new instance of SyncWriter.
- #write(trace, services) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ SyncWriter
Returns a new instance of SyncWriter.
6 7 8 9 10 |
# File 'lib/ddtrace/sync_writer.rb', line 6 def initialize( = {}) @transport = .fetch(:transport) do HTTPTransport.new(Writer::HOSTNAME, Writer::PORT) end end |
Instance Attribute Details
#transport ⇒ Object (readonly)
Returns the value of attribute transport.
4 5 6 |
# File 'lib/ddtrace/sync_writer.rb', line 4 def transport @transport end |