-
Notifications
You must be signed in to change notification settings - Fork 28
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 Tracing, Metrics #85
Comments
For tracing - makes absolute sense to me. For metrics, note that Milvus emits these on the server side (docs, docs); using this probably makes more sense than on the cilent side (since you get fully aggregated metrics for the entire server). It's probably worth checking how easy it would be to add these server metrics to Aspire... For the health check, MilvusClient already exposes a HealthCheck() API - can that be used? |
RE: HealthChecks -- let me see if I can add that easily -- we've been leveraging the AspNetCore.HealthChecks project as primary generally and there isn't a Milvus one there. Xabaril/AspNetCore.Diagnostics.HealthChecks#2214 RE: Metrics, the Aspire pattern has been that the Client provides the signal still not a direct from the server. eg: https://github.com/dotnet/aspire/blob/main/src/Components/Aspire.MySqlConnector/AspireMySqlConnectorExtensions.cs#L99 |
Got the HealthChecks implemented for Aspire. |
Yeah, that's true, but I think that's more because traditional database servers (PostgreSQL, MySQL, SQL Server...) simply don't emit OpenTelemetry metrics (yet)... Where server metrics do exist (like in the Milvus case, it seems), by default I'd expect them to be the better thing - the server has more meaningful/interesting/internal metrics it can report, and in general, you're interested in your server performance (so aggregated for all clients) rather than a particular client instance, I'd think... |
Agreed. I think looking at the model we have established, the meter exists in the client component. E.g from MySqlconnector: https://github.com/mysql-net/MySqlConnector/blob/9efc679afa3d662fef2684adc89fe4152e272817/src/MySqlConnector/Utilities/ActivitySourceHelper.cs#L59 |
Describe the solution you'd like
Would like the C# SDK for Milvus to have Tracing/HealthChecks/Metrics. For .NET Aspire, the components are desired to have all of these 'by default' for consumers. .NET Aspire is introducing hosting support for Milvus and wrapping the Milvus C# Client in a component and would like these to be exposed more. See: https://github.com/dotnet/aspire/tree/main/src/Components
The text was updated successfully, but these errors were encountered: