Class: Jekyll::Minify::Instrumentation::NoopTracer

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll-minify/instrumentation.rb

Overview

No-op tracer used when opentelemetry-api is not loaded.

Instance Method Summary collapse

Instance Method Details

#in_span(_name, **_opts) {|span| ... } ⇒ Object

Yields a NoopSpan and returns the block's value.

Parameters:

  • _name (String)

    span name (ignored)

  • _opts (Hash)

    span options (ignored)

Yield Parameters:

Returns:

  • (Object)

    the block's return value



263
264
265
# File 'lib/jekyll-minify/instrumentation.rb', line 263

def in_span(_name, **_opts)
  yield NoopSpan.new
end