Method: OpenTelemetry::SDK::Trace::Export::InMemorySpanExporter#recording

Defined in:
lib/opentelemetry/sdk/trace/export/in_memory_span_exporter.rb

#recordingBoolean

Controls whether or not the exporter will record spans, or discard them.

Returns:

  • (Boolean)

    when true, the exporter is recording. By default, this is true.



37
38
39
# File 'lib/opentelemetry/sdk/trace/export/in_memory_span_exporter.rb', line 37

def recording
  @recording
end