Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

bug: make UA name an 'extra' value for Sentry errors. #153

Merged
merged 5 commits into from
Jun 16, 2021
Merged

Conversation

jrconlin
Copy link
Member

Description

In order to reduce some of the cardinality we're seeing with some sentry errors, it may be a good idea to move some of the data as "tag" info. (e.g. for InvalidUA and ADM Server Errors, we could move the "unique" bits as extra tag info so that we get a better idea of how many events we're seeing without using regular expression tricks.

Testing

test included (for InvalidUA at least)

Issue(s)

Closes #147

jrconlin added 3 commits June 10, 2021 09:08
* Remove tag hand off for get_UA
* reduce cardinality for AdmServerError in sentry
@jrconlin jrconlin requested review from pjenvey and a team June 10, 2021 17:18
@@ -164,7 +164,9 @@ pub async fn get_tiles(
.await
.map_err(|e| {
// ADM servers are down, or improperly configured
HandlerErrorKind::AdmServerError(e.to_string())
let mut err: HandlerError = HandlerErrorKind::AdmServerError().into();
Copy link
Member

Choose a reason for hiding this comment

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

We might want to keep the string for now and instead break down the type of error (later). Most of what we're seeing so far is err.is_timeout(), so we'd probably start there -- but probably be handy to know if it's something else before we fully break it all down.

Copy link
Member

@pjenvey pjenvey Jun 16, 2021

Choose a reason for hiding this comment

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

Oh but the string's obviously sent as an extra (I'm not sure I noticed this before 🤷‍♂️ ), so we're not losing it, this works for me.

We could map specific e.g. err.is_timeout() errors to their own individual error if we wanted later.

@pjenvey pjenvey merged commit 582c327 into main Jun 16, 2021
@pjenvey pjenvey deleted the bug/147-ua branch June 16, 2021 16:48
Trinaa pushed a commit that referenced this pull request Jun 13, 2022
…lack-22.1.0

Bump black from 21.12b0 to 22.1.0 in /client
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert Invalid UA to metric
2 participants