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(metrics): Add session.status tag to session.duration #1087

Merged
merged 3 commits into from
Sep 27, 2021

Conversation

jjbayer
Copy link
Member

@jjbayer jjbayer commented Sep 22, 2021

In session metric extraction, add the session status as a tag to the session.duration metric, such that we can group by status in release health.

@jjbayer jjbayer requested review from jan-auer and a team September 22, 2021 10:53
@@ -551,7 +551,7 @@ fn extract_session_metrics(session: &SessionUpdate, target: &mut Vec<Metric>) {
unit: MetricUnit::Duration(DurationPrecision::Second),
value: MetricValue::Distribution(duration),
timestamp,
tags,
tags: with_tag(&tags, "session.status", session.status),
Copy link
Member Author

Choose a reason for hiding this comment

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

@jan-auer Do you remember if there was any particular reason we did not add this in the first place? session.duration can definitely be grouped by session.status in sessions_v2.

Copy link
Member

Choose a reason for hiding this comment

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

I do not remember a particular reason. Only argument that comes to mind now is that it increases size and cardinality of the histogram metric.

@@ -551,7 +551,7 @@ fn extract_session_metrics(session: &SessionUpdate, target: &mut Vec<Metric>) {
unit: MetricUnit::Duration(DurationPrecision::Second),
value: MetricValue::Distribution(duration),
timestamp,
tags,
tags: with_tag(&tags, "session.status", session.status),
Copy link
Member

Choose a reason for hiding this comment

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

I do not remember a particular reason. Only argument that comes to mind now is that it increases size and cardinality of the histogram metric.

@jjbayer jjbayer enabled auto-merge (squash) September 27, 2021 07:03
@jjbayer jjbayer merged commit 8706988 into master Sep 27, 2021
@jjbayer jjbayer deleted the fix/metrics-session-duration-tags branch September 27, 2021 07:09
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