Class: Jaeger::Reporters::CompositeReporter
- Inherits:
-
Object
- Object
- Jaeger::Reporters::CompositeReporter
- Defined in:
- lib/jaeger/reporters/composite_reporter.rb
Instance Method Summary collapse
-
#initialize(reporters:) ⇒ CompositeReporter
constructor
A new instance of CompositeReporter.
- #report(span) ⇒ Object
Constructor Details
#initialize(reporters:) ⇒ CompositeReporter
Returns a new instance of CompositeReporter.
6 7 8 |
# File 'lib/jaeger/reporters/composite_reporter.rb', line 6 def initialize(reporters:) @reporters = reporters end |
Instance Method Details
#report(span) ⇒ Object
10 11 12 13 14 |
# File 'lib/jaeger/reporters/composite_reporter.rb', line 10 def report(span) @reporters.each do |reporter| reporter.report(span) end end |