Method: Jaeger::Client::Tracer#start_span
- Defined in:
- lib/jaeger/client/tracer.rb
#start_span(operation_name, child_of: nil, references: nil, start_time: Time.now, tags: {}, ignore_active_scope: false) ⇒ Span
Starts a new span.
This is similar to #start_active_span, but the returned Span will not be registered via the ScopeManager.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/jaeger/client/tracer.rb', line 46 def start_span(operation_name, child_of: nil, references: nil, start_time: Time.now, tags: {}, ignore_active_scope: false, **) context = prepare_span_context( child_of: child_of, references: references, ignore_active_scope: ignore_active_scope ) Span.new( context, operation_name, @reporter, start_time: start_time, references: references, tags: .merge( :'sampler.type' => @sampler.type, :'sampler.param' => @sampler.param ) ) end |