Class: ActiveAgent::Telemetry::Reporter
- Inherits:
-
ActiveAgents::Telemetry::BatchingReporter
- Object
- ActiveAgents::Telemetry::BatchingReporter
- ActiveAgent::Telemetry::Reporter
- Defined in:
- lib/active_agent/telemetry/reporter.rb
Overview
The framework's reporter, now provided by the activeagents-telemetry gem's BatchingReporter: buffered delivery on batch_size/flush_interval, a blocking flush, and a shutdown that waits out in-flight sends so traces reported near process exit are delivered rather than dropped.
Local storage is handled by Configuration#local_store, which routes traces through the dashboard's trace model instead of HTTP.
Instance Method Summary collapse
-
#initialize(configuration) ⇒ Reporter
constructor
A new instance of Reporter.
Constructor Details
#initialize(configuration) ⇒ Reporter
Returns a new instance of Reporter.
15 16 17 18 19 20 |
# File 'lib/active_agent/telemetry/reporter.rb', line 15 def initialize(configuration) # sample: false — the Tracer applies head-based sampling at trace # creation, before any span is built; sampling again here would # compound the rate to rate². super(configuration, sdk_name: "activeagent", sdk_version: ActiveAgent::VERSION, sample: false) end |