Skip to content

Count post-shutdown-dropped records as already_shutdown on processor.processed - #5509

Open
cijothomas wants to merge 3 commits into
open-telemetry:mainfrom
cijothomas:cijothomas/processor-already-shutdown-metric
Open

Count post-shutdown-dropped records as already_shutdown on processor.processed#5509
cijothomas wants to merge 3 commits into
open-telemetry:mainfrom
cijothomas:cijothomas/processor-already-shutdown-metric

Conversation

@cijothomas

Copy link
Copy Markdown
Member

Follow-up to #5472. The batch (span + log) and simple log processors dropped records silently once shut down. This counts those drops on otel.sdk.processor.{span,log}.processed with error.type=already_shutdown, which the semantic conventions define as a valid value for this metric.

Question for reviewers: SimpleSpanProcessor is intentionally left unchanged here — it has no shutdown gate, so it keeps exporting spans after shutdown() rather than dropping them, and there's nothing to count as already_shutdown. Adding a shutdown gate there would be a behavior change (post-shutdown spans would stop being exported). If there's appetite to align it, I'll do that as a separate PR — let me know.

…ady_shutdown

Batch (span+log) and simple log processors previously dropped records
silently after shutdown. Count them on otel.sdk.processor.{span,log}.processed
with error.type=already_shutdown, matching the semantic conventions and the
.NET SDK. SimpleSpanProcessor is unchanged (it has no shutdown gate).

Assisted-by: Claude Opus 4.8
@cijothomas
cijothomas requested a review from a team as a code owner August 4, 2026 23:29
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