Module: Anthropic::Helpers::Tracing::Recorders::BatchesCreate Private

Defined in:
lib/anthropic/helpers/tracing/recorders.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.record(_span, _result) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • _span (OpenTelemetry::Trace::Span)
  • _result (Hash{Symbol=>Object})


101
# File 'lib/anthropic/helpers/tracing/recorders.rb', line 101

def record(_span, _result) = nil

.start_attributes(_client, req) ⇒ Hash{String=>Object}

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

Returns:

  • (Hash{String=>Object})


95
96
97
# File 'lib/anthropic/helpers/tracing/recorders.rb', line 95

def start_attributes(_client, req)
  {ANTHROPIC_MESSAGE_BATCH_REQUEST_COUNT => req[:body][:requests]&.length}
end