Module: LanguageOperator::Agent::Instrumentation

Included in:
LanguageOperator::Agent, Base, Executor, TaskExecutor, Client::Base
Defined in:
lib/language_operator/agent/instrumentation.rb

Overview

OpenTelemetry instrumentation helpers for agent methods

Provides reusable patterns for tracing agent operations with automatic error handling and span status management.

Examples:

Instrument a method

include LanguageOperator::Agent::Instrumentation

def my_method
  with_span('my_method', attributes: { 'key' => 'value' }) do
    # Method implementation
  end
end