Class: Jaeger::Reporters::CompositeReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/jaeger/reporters/composite_reporter.rb

Instance Method Summary collapse

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