-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(metrics): Add session.status tag to session.duration #1087
Conversation
@@ -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), |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
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.
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.