Class: OpenTelemetry::SDK::Trace::NoopSpanProcessor
- Inherits:
-
Object
- Object
- OpenTelemetry::SDK::Trace::NoopSpanProcessor
- Includes:
- Singleton
- Defined in:
- lib/opentelemetry/sdk/trace/noop_span_processor.rb
Overview
Instance Method Summary collapse
-
#force_flush ⇒ Object
Export all ended spans to the configured
Exporterthat have not yet been exported. -
#on_finish(span) ⇒ Object
Called when a Span is ended, if the Span#recording? returns true.
-
#on_start(span) ⇒ Object
Called when a Span is started, if the Span#recording? returns true.
-
#shutdown ⇒ Object
Called when TracerProvider#shutdown is called.
Instance Method Details
#force_flush ⇒ Object
Export all ended spans to the configured Exporter that have not yet
been exported.
This method should only be called in cases where it is absolutely
necessary, such as when using some FaaS providers that may suspend
the process after an invocation, but before the Processor exports
the completed spans.
43 |
# File 'lib/opentelemetry/sdk/trace/noop_span_processor.rb', line 43 def force_flush; end |
#on_finish(span) ⇒ Object
Called when a Span is ended, if the Span#recording? returns true.
This method is called synchronously on the execution thread, should not throw or block the execution thread.
34 |
# File 'lib/opentelemetry/sdk/trace/noop_span_processor.rb', line 34 def on_finish(span); end |
#on_start(span) ⇒ Object
Called when a Span is started, if the Span#recording? returns true.
This method is called synchronously on the execution thread, should not throw or block the execution thread.
25 |
# File 'lib/opentelemetry/sdk/trace/noop_span_processor.rb', line 25 def on_start(span); end |
#shutdown ⇒ Object
Called when TracerProvider#shutdown is called.
46 |
# File 'lib/opentelemetry/sdk/trace/noop_span_processor.rb', line 46 def shutdown; end |