Count otel.sdk.processor.{span,log}.processed at exporter-submit time - #5472
Open
cijothomas wants to merge 6 commits into
Open
Count otel.sdk.processor.{span,log}.processed at exporter-submit time#5472cijothomas wants to merge 6 commits into
cijothomas wants to merge 6 commits into
Conversation
Assisted-by: Claude Opus 4.8
cijothomas
force-pushed
the
cijothomas/fix-processor-processed-boundary
branch
from
July 31, 2026 21:18
7cda835 to
05b0a31
Compare
cijothomas
marked this pull request as ready for review
July 31, 2026 21:21
Assisted-by: Claude Opus 4.8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Aligns Python with the processor
processedboundary clarified in open-telemetry/semantic-conventions#3902.The
otel.sdk.processor.span.processed/otel.sdk.processor.log.processedcounters are currently incremented afterexporter.export()returns, and an exporter failure is stamped onto this metric aserror.type(the raised exception's class name). That conflates exporter outcome with processor outcome and produces unboundederror.typecardinality.This aligns Python with the boundary clarified in semantic-conventions#3902: the processor counts a record as processed when it submits the batch to the exporter, regardless of the export result.
error.typeon this metric is reserved for the processor's own drop reasons (queue_full,already_shutdown); exporter success/failure is reported separately by theotel.sdk.exporter.*metrics.Changes:
finish_items(count)no longer takes an error and always records success.