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

Add TestObservationRegistryAssert assertion for observation count #3426

Closed
bclozel opened this issue Sep 23, 2022 · 0 comments · Fixed by #3432
Closed

Add TestObservationRegistryAssert assertion for observation count #3426

bclozel opened this issue Sep 23, 2022 · 0 comments · Fixed by #3432

Comments

@bclozel
Copy link
Contributor

bclozel commented Sep 23, 2022

Currently TestObservationRegistryAssert offers several assertion method for checking observations on an individual basis.
I would like to check for the number of observations for a given observation name. This can be useful when checking that retries support records several observations, or that filters prevent cardinality explosion in metrics.

It seems that the tracing test support already offers a hasNumberOfSpansWithNameEqualTo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants