Module: Rage::Telemetry
- Defined in:
- lib/rage/telemetry/telemetry.rb
Overview
The Rage::Telemetry component provides an interface to monitor various operations and events within the Rage framework.
To start using telemetry, define and register custom handlers that will process the telemetry data.
-
Define Handlers: Create custom telemetry handlers by subclassing Rage::Telemetry::Handler and implementing the desired logic for processing telemetry data.
class MyTelemetryHandler < Rage::Telemetry::Handler handle "controller.action.process", with: :log_action def log_action(controller:) puts "Processing action: #{controller.action_name}" yield end end -
Register Handlers: Register your custom handlers in the Rage configuration.
Rage.configure do config.telemetry.use MyTelemetryHandler.new end
Defined Under Namespace
Modules: Spans Classes: Handler, SpanResult, Tracer
Class Method Summary collapse
-
.available_spans ⇒ Array<String>
Returns the list of all available telemetry spans.
Class Method Details
.available_spans ⇒ Array<String>
Returns the list of all available telemetry spans.
35 36 37 |
# File 'lib/rage/telemetry/telemetry.rb', line 35 def self.available_spans __registry.keys end |