Skip to content

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

Merged
aabmass merged 3 commits into
open-telemetry:mainfrom
cijothomas:cijothomas/simple-span-processor-already-shutdown
Aug 7, 2026
Merged

Drop and count spans ended after SimpleSpanProcessor shutdown as already_shutdown#5512
aabmass merged 3 commits 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
@github-project-automation github-project-automation Bot moved this to Approved PRs in Python PR digest Aug 6, 2026
@aabmass
aabmass added this pull request to the merge queue Aug 7, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 7, 2026
@aabmass
aabmass enabled auto-merge August 7, 2026 21:09
@aabmass
aabmass added this pull request to the merge queue Aug 7, 2026
Merged via the queue into open-telemetry:main with commit a6d59ca Aug 7, 2026
578 checks passed
@github-project-automation github-project-automation Bot moved this from Approved PRs to Done in Python PR digest Aug 7, 2026
@github-project-automation github-project-automation Bot moved this from In progress to Done in OTel Clients Self Observability Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants