Class: Rage::Telemetry::Spans::DispatchFiber

Inherits:
Object
  • Object
show all
Defined in:
lib/rage/telemetry/spans/dispatch_fiber.rb

Overview

The core.fiber.dispatch span tracks the scheduling and processing of system-level fibers created by the framework to process requests and deferred tasks.

This span is started when a system fiber begins processing and ends when the fiber has completed processing. See handle for the list of arguments passed to handler methods.

Class Method Summary collapse

Class Method Details

.handle(id:, name:) ⇒ Object

Note:

Rage automatically detects which parameters your handler method accepts and only passes those parameters. You can omit any of the parameters described here.

Examples:

class MyTelemetryHandler < Rage::Telemetry::Handler
  handle "core.fiber.dispatch", with: :my_handler

  def my_handler(id:, name:)
    yield
  end
end

Parameters:

  • id ("core.fiber.dispatch")

    ID of the span

  • name ("Fiber.dispatch")

    human-readable name of the operation

Yield Returns:



15
16
# File 'lib/rage/telemetry/spans/dispatch_fiber.rb', line 15

def handle(id:, name:)
end