View Source SwarmEx.Telemetry (SwarmEx v0.1.0)

Telemetry integration for SwarmEx. Provides metrics and event tracking for agent activities.

Events

The following events are emitted:

  • [:swarm_ex, :agent, :message, :start] - When an agent begins processing a message

    • Measurement: :system_time
    • Metadata: :agent_id, :message_type, :network_id
  • [:swarm_ex, :agent, :message, :stop] - When an agent completes processing a message

    • Measurement: :duration, :queue_time
    • Metadata: :agent_id, :message_type, :network_id, :result
  • [:swarm_ex, :tool, :execute, :start] - When a tool execution begins

    • Measurement: :system_time
    • Metadata: :tool_name, :agent_id, :args
  • [:swarm_ex, :tool, :execute, :stop] - When a tool execution completes

    • Measurement: :duration
    • Metadata: :tool_name, :agent_id, :result

Summary

Functions

Attaches telemetry event handlers. Call this when your application starts.

Emits an agent message event with timing information.

Emits a tool execution event with timing information.

Functions

Attaches telemetry event handlers. Call this when your application starts.

Link to this function

span_agent_message(agent_id, message_type, func)

View Source

Emits an agent message event with timing information.

Link to this function

span_tool_execution(tool_name, agent_id, args, func)

View Source

Emits a tool execution event with timing information.