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 support for stats via Nebulex.Telemetry.StatsHandler #29

Merged
merged 3 commits into from
May 20, 2021

Conversation

simoncocking
Copy link
Contributor

This adds support for emitting stats via Nebulex.Telemetry.StatsHandler, leveraging the Telemetry span events added in v2.1.0. Resolves #28.

Copy link
Owner

@cabol cabol left a comment

Choose a reason for hiding this comment

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

LGTM 👌 . The only missing thing is to add a test, it can be a simple test just to confirm the stats work, and also this callback is covered. BTW, to keep it in mind, I think the stat :expirations is not going to be possible to update it since it is not possible to know if a key was expired or it does not exist from Redis API (perhaps we can check), but just to keep it inn mind, this can be handled if a separate issue if there is a way to do it.

@simoncocking
Copy link
Contributor Author

The only missing thing is to add a test

How's that now? 😉

Copy link
Owner

@cabol cabol left a comment

Choose a reason for hiding this comment

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

Just a small comment to fix the dialyzer warnings, and also to avoid attaching the handler when :stats option is set to false.

@cabol cabol merged commit 81e5277 into cabol:master May 20, 2021
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.

NebulexRedisAdapter does not implement c:stats/0
2 participants