Class: GEPA::Telemetry::Context
- Inherits:
-
T::Struct
- Object
- T::Struct
- GEPA::Telemetry::Context
- Extended by:
- T::Sig
- Defined in:
- lib/gepa/telemetry.rb
Instance Method Summary collapse
Instance Method Details
#emit(event_name, metadata = {}) ⇒ Object
53 54 55 |
# File 'lib/gepa/telemetry.rb', line 53 def emit(event_name, = {}) Telemetry.emit(event_name, base_attributes.merge(Telemetry.send(:symbolize, ))) end |
#with_span(operation, metadata = {}, &block) ⇒ Object
43 44 45 |
# File 'lib/gepa/telemetry.rb', line 43 def with_span(operation, = {}, &block) Telemetry.with_span(operation, base_attributes.merge(Telemetry.send(:symbolize, )), &block) end |