-
Notifications
You must be signed in to change notification settings - Fork 531
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
Integrate OpenTelemetry to enhance observability #379
Comments
I've been thinking about this for a while (and implementing the server using Generic Host in general). By using the new System.Diagnostics.Metrics APIs ( We should follow the existing OTel semantic conventions for Redis but of course modify/extend it if needed. Also configurations knob whether to record db.statement or not, as I believe there is currently no redaction capabilities in Garnet for potentially sensitive parts of the command. Measuring anything should become a lot easier, but we should follow how ASP.NET & We should also measure if any extra contention (IIRC currently Garnet's counters are done by atomic Some existing tracking issues for (I've been thinking about this for quite bit because I'm planning to write Crank infrastructure & scenarios to bench Garnet, someday.) |
It would be a great idea to support OpenTelemetry on the server side, and contributions in this space are highly encouraged! Not only is this generally useful, but when used with .NET Aspire it will make the metrics automatically available. Doing this seems to basically require some glue code to feed data from our current Metrics API endpoint to OpenTelemetry: garnet/libs/host/GarnetServer.cs Line 55 in 8856dc3
The potential migration to
garnet/metrics/HdrHistogram/LongHistogram.cs Lines 153 to 154 in 8856dc3
Then we aggregate periodically (or on-demand) across all active and inactive sessions to perform the metrics computation. |
the project is being compiled to both net6 & net8, the new metrics API's exist starting with net8 |
We are removing support for .NET 6 here: #580 Hope to see a contribution in this space! |
.net6 support now removed, in #582 |
Feature request type
enhancement
Is your feature request related to a problem? Please describe
integrate OpenTelemetry or other trance component to enhance observability。
Describe the solution you'd like
integrate OpenTelemetry or other trance component to enhance observability。
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: