-
Notifications
You must be signed in to change notification settings - Fork 30
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
Conversation
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.
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.
How's that now? 😉 |
515d9cf
to
8cc6f25
Compare
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.
Just a small comment to fix the dialyzer warnings, and also to avoid attaching the handler when :stats
option is set to false
.
3136124
to
cb25159
Compare
cb25159
to
9d223d4
Compare
This adds support for emitting stats via
Nebulex.Telemetry.StatsHandler
, leveraging the Telemetry span events added in v2.1.0. Resolves #28.