Skip to content

Conversation

evanh
Copy link
Member

@evanh evanh commented Jul 17, 2025

This adds a metric that counts how many successful produces there were with a status. A future PR
will also add the specific error code to the tags.

This adds a metric that counts how many successful produces there were with a status. A future PR
will also add the specific error code to the tags.
@evanh evanh requested review from a team as code owners July 17, 2025 14:34
@evanh evanh merged commit c32021a into main Jul 17, 2025
15 checks passed
@evanh evanh deleted the evanh/fix/add-producer-failure-metrics branch July 17, 2025 15:19
Comment on lines +81 to +85
except Exception as e:
self.__metrics.increment(
"arroyo.producer.produce_status", tags={"status": "error"}
)
raise e
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to identify the error code and add it as a tag. Not all errors should make us burn our SLO. For example messages that are too large would still show up here. Those should not make us burn the SLO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants