class Aws::Telemetry::OTelTracer
def start_span(name, with_parent: nil, attributes: nil, kind: nil)
-
(Aws::Telemetry::OTelSpan)
-
Parameters:
-
kind
(Aws::Telemetry::SpanKind
) -- Type of Span -
attributes
(Hash
) -- Attributes to attach to the span -
with_parent
(Object
) -- Parent Context -
name
(String
) -- Span name
def start_span(name, with_parent: nil, attributes: nil, kind: nil) span = @tracer.start_span( name, with_parent: with_parent, attributes: attributes, kind: kind ) OTelSpan.new(span) end