Class: Aws::Telemetry::NoOpTracer

Inherits:
TracerBase show all
Defined in:
gems/aws-sdk-core/lib/aws-sdk-core/telemetry/no_op.rb

Overview

No-op implementation for TracerBase.

Instance Method Summary collapse

Instance Method Details

#current_spanObject



32
33
34
# File 'gems/aws-sdk-core/lib/aws-sdk-core/telemetry/no_op.rb', line 32

def current_span
  NoOpSpan.new
end

#in_span(name, attributes: nil, kind: nil) {|NoOpSpan.new| ... } ⇒ Object

Yields:



28
29
30
# File 'gems/aws-sdk-core/lib/aws-sdk-core/telemetry/no_op.rb', line 28

def in_span(name, attributes: nil, kind: nil)
  yield NoOpSpan.new
end

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



24
25
26
# File 'gems/aws-sdk-core/lib/aws-sdk-core/telemetry/no_op.rb', line 24

def start_span(name, with_parent: nil, attributes: nil, kind: nil)
  NoOpSpan.new
end