Method: OpenTelemetry::SDK::Trace::Tracer#start_span

Defined in:
lib/opentelemetry/sdk/trace/tracer.rb

#start_span(name, with_parent: nil, attributes: nil, links: nil, start_timestamp: nil, kind: nil) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/opentelemetry/sdk/trace/tracer.rb', line 30

def start_span(name, with_parent: nil, attributes: nil, links: nil, start_timestamp: nil, kind: nil)
  with_parent ||= Context.current
  name ||= 'empty'
  kind ||= :internal

  @tracer_provider.internal_start_span(name, kind, attributes, links, start_timestamp, with_parent, @instrumentation_scope)
end