Module: Rage::Telemetry::Spans

Defined in:
lib/rage/telemetry/telemetry.rb

Overview

The namespace contains all telemetry span definitions. Each span represents a specific operation or event within the framework that can be monitored and traced.

Spans always pass two standard keyword arguments to their handlers:

  • :id - The unique identifier of the span.

  • :name - The human-readable name of the operation.

Handlers can also receive additional context-specific keyword arguments as defined by each span.

Available Spans

ID Reference Description
core.fiber.dispatch DispatchFiber Wraps the scheduling and processing of system-level fibers created by the framework to process requests and deferred tasks
core.fiber.spawn SpawnFiber Wraps the scheduling and processing of application-level fibers created via Fiber.schedule
core.fiber.await AwaitFiber Wraps the processing of the Fiber.await calls
controller.action.process ProcessControllerAction Wraps the processing of controller actions
cable.websocket.handshake CreateWebsocketConnection Wraps the WebSocket connection handshake process
cable.connection.process ProcessCableConnection Wraps the processing of connect actions in Rage::Cable
cable.action.process ProcessCableAction Wraps the processing of Rage::Cable channel actions
cable.stream.broadcast BroadcastCableStream Wraps the broadcasting of messages to Rage::Cable streams
deferred.task.enqueue EnqueueDeferredTask Wraps the enqueuing of deferred tasks
deferred.task.process ProcessDeferredTask Wraps the processing of deferred tasks
events.event.publish PublishEvent Wraps the publishing of events via Rage::Events
events.subscriber.process ProcessEventSubscriber Wraps the processing of events by subscribers

Defined Under Namespace

Classes: AwaitFiber, BroadcastCableStream, CreateWebsocketConnection, DispatchFiber, EnqueueDeferredTask, ProcessCableAction, ProcessCableConnection, ProcessControllerAction, ProcessDeferredTask, ProcessEventSubscriber, PublishEvent, SpawnFiber