Forces to export all finished spans
Called when a ReadableSpan is ended, if the span.isRecording()
returns true.
the Span that just ended.
Called when a Span is started, if the span.isRecording()
returns true.
Shuts down the processor. Called when SDK is shut down. This is an opportunity for processor to do any cleanup required.
The
@opentelemetry/sdk-traceSimpleSpanProcessor, which throws a descriptiveTypeErrorwhen it is not given an{ exporter }options object, such as the OpenTelemetry JS 2.x formnew SimpleSpanProcessor(exporter).