Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(statsd): Emit specific event type tags for "processing.event.produced" metric #1270

Merged
merged 3 commits into from
May 18, 2022

Conversation

tonyo
Copy link
Contributor

@tonyo tonyo commented May 17, 2022

This, for example, fixes the case when transactions are reported as generic "events".

Note: as discussed internally, event_type might not be the best name for this tag anymore, since "event" actually means "error" in some contexts.

…uced" metric

This, for example, fixes the case when transactions are reported as
generic "events".
@tonyo tonyo requested a review from a team May 17, 2022 11:20
Copy link
Member

@untitaker untitaker left a comment

Choose a reason for hiding this comment

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

I wonder if there's a way to check whether we have alerts/SLOs set up that filter on this tag

@jan-auer
Copy link
Member

as discussed internally, event_type might not be the best name for this tag anymore, since "event" actually means "error" in some contexts.

More so, we use this same tag for every message type that is produced to one of the kafka ingest streams, including metrics, sessions, and user feedback. So far I've been reluctant to change it just to avoid breaking existing alerts.

Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Note that this will now create two new tag values besides event: transaction and security. The latter is merely a protocol artifact, but otherwise behaves exactly like event in Kafka and during ingestion.

Depending on what you want to measure here, it seems to me that you actually just want to single out transactions. In that case, you could use the item type to detect transactions, and otherwise keep event.

@tonyo tonyo merged commit 4dbf1b2 into master May 18, 2022
@tonyo tonyo deleted the fix/processing-msg-transaction-tag branch May 18, 2022 08:39
@mwarkentin
Copy link
Member

@tonyo @jan-auer @untitaker I wonder if it would be possible to add the same tag to the processing.produce.error metric?

Self::ProcessingProduceError => "processing.produce.error",

@jjbayer
Copy link
Member

jjbayer commented Mar 8, 2024

I wonder if it would be possible to add the same tag to the processing.produce.error metric?

@mwarkentin I added a topic tag to that error last week, is that good enough? #3189

@mwarkentin
Copy link
Member

@jjbayer I am trying to use these two metrics in combination for an SLO metric in Datadog, so I need the same tag on each - either topic or event_type would work, but right now we have one or the other depending on which metric you're looking at.

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.

5 participants