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

Expose "start" and "stop" timestamps as metrics #2626

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

pfyod
Copy link
Contributor

@pfyod pfyod commented Jul 3, 2024

Context

In order to be able to track whether tests actually ran, there should be some sort of timestamp in Prometheus / influxdb metrics.

This PR exposes existing start and stop timestamps from GroupTime as metrics inside the TimeMetric class. I guess they were simply overlooked as all other properties of GroupTime are already exposed.

Three are no existing unit tests for the involved classes, so not sure where would one add them and what to test there.

This fixes an existing issue #889.

Checklist

Signed-off-by: Pavels Fjodorovs <pavels.fjodorovs@hotelplan.com>
@baev baev added the type:improvement Change that improves some user experience but can't be considered as a new feature label Jul 3, 2024
@baev baev merged commit cd88128 into allure-framework:main Jul 5, 2024
9 of 10 checks passed
@baev
Copy link
Member

baev commented Jul 5, 2024

@pfyod thanks!

@pfyod pfyod deleted the expose-start-stop-metrics branch July 17, 2024 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:plugin api type:improvement Change that improves some user experience but can't be considered as a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants