Marks the given trace ids as owned by a thread, so
clearSpansForThread can release their process-span registry entries
even when no ended span ties the trace to the thread.
Removes all spans associated with a specific thread. Call this after a scenario run completes to prevent memory growth in long-lived processes.
The thread identifier whose spans should be cleared
Forces to export all finished spans
Retrieves all spans associated with a specific thread.
The thread identifier to filter spans by
Array of spans for the given thread
True when this process started the given span itself: a fetched span with this id is a platform echo of a local span, never remote evidence.
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.
the Span that just started.
Removes one span by id. Used by the remote trace fetcher to retract a synthetic error span when the judge waits once more and the trace settles after all.
Shuts down the processor. Called when SDK is shut down. This is an opportunity for processor to do any cleanup required.
Collects OpenTelemetry spans for judge evaluation. Implements SpanProcessor to intercept spans as they complete.