Class: SignalFx::Tracing::AutoRevivingAsyncReporter
- Inherits:
-
Jaeger::Client::AsyncReporter
- Object
- Jaeger::Client::AsyncReporter
- SignalFx::Tracing::AutoRevivingAsyncReporter
- Defined in:
- lib/signalfx/tracing/reporter/auto_reviving_async_reporter.rb
Instance Method Summary collapse
-
#initialize(sender, flush_interval) ⇒ AutoRevivingAsyncReporter
constructor
A new instance of AutoRevivingAsyncReporter.
- #report(span) ⇒ Object
Constructor Details
#initialize(sender, flush_interval) ⇒ AutoRevivingAsyncReporter
Returns a new instance of AutoRevivingAsyncReporter.
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/signalfx/tracing/reporter/auto_reviving_async_reporter.rb', line 15 def initialize(sender, flush_interval) @flush_interval = flush_interval @poll_thread = Thread.new do loop do flush sleep(@flush_interval) end end super(sender) end |
Instance Method Details
#report(span) ⇒ Object
27 28 29 30 |
# File 'lib/signalfx/tracing/reporter/auto_reviving_async_reporter.rb', line 27 def report(span) ::SignalFx::Tracing::Instrumenter.revive if !@poll_thread super end |