class Aws::Telemetry::OTelTracer

def in_span(name, attributes: nil, kind: nil, &block)

Returns:
  • (Aws::Telemetry::OTelSpan) -

Parameters:
  • kind (Aws::Telemetry::SpanKind) -- Type of Span
  • attributes (Hash) -- Attributes to attach to the span
  • name (String) -- Span name
def in_span(name, attributes: nil, kind: nil, &block)
  @tracer.in_span(name, attributes: attributes, kind: kind) do |span|
    block.call(OTelSpan.new(span))
  end
end