Skip to content

Drop and count spans ended after SimpleSpanProcessor shutdown as already_shutdown - #5512

Open
cijothomas wants to merge 1 commit into
open-telemetry:mainfrom
cijothomas:cijothomas/simple-span-processor-already-shutdown
Open

Drop and count spans ended after SimpleSpanProcessor shutdown as already_shutdown#5512
cijothomas wants to merge 1 commit into
open-telemetry:mainfrom
cijothomas:cijothomas/simple-span-processor-already-shutdown

Conversation

@cijothomas

Copy link
Copy Markdown
Member

Follow-up to #5509. That PR added already_shutdown counting to the batch (span and log) and simple log processors, but intentionally left SimpleSpanProcessor unchanged because it had no shutdown gate: it kept passing spans ended after shutdown() to the (already shut down) exporter. This adds that gate, matching the other processors and the semantic conventions.

After shutdown(), SimpleSpanProcessor now drops ended spans instead of passing them to the exporter, and counts them on otel.sdk.processor.span.processed with error.type=already_shutdown.

Note this is a behavior change: spans ended after shutdown() are no longer passed to the exporter.

@cijothomas
cijothomas requested a review from a team as a code owner August 5, 2026 20:53
@cijothomas
cijothomas force-pushed the cijothomas/simple-span-processor-already-shutdown branch from 9ee3855 to 85298d8 Compare August 5, 2026 20:54
@cijothomas cijothomas moved this from Todo to In progress in OTel Clients Self Observability Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress
Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant