Adds a metric that records the session duration. The metric uses a histogramm which records the sum of all durations and the number of durations over time.
For testing with prometheus I used the following queries:
rate(vaadin_session_duration_sum[5m]) / rate(vaadin_session_duration_count[5m]) - average over time
vaadin_session_duration_sum / vaadin_session_duration_count total average
This also adds a more comprehensive test setup for reading metrics from OpenTelemetry.
Description
Adds a metric that records the session duration. The metric uses a histogramm which records the sum of all durations and the number of durations over time.
For testing with prometheus I used the following queries:
rate(vaadin_session_duration_sum[5m]) / rate(vaadin_session_duration_count[5m])
- average over timevaadin_session_duration_sum / vaadin_session_duration_count
total averageThis also adds a more comprehensive test setup for reading metrics from OpenTelemetry.