-
Notifications
You must be signed in to change notification settings - Fork 587
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
The log
| private partial void LogRequestHandlerCompleted(string endpointName, string method); |
I think we should improve it to be more like the aspnetcore request completed log that includes the duration, maybe also content length.
called from here
csharp-sdk/src/ModelContextProtocol.Core/McpSessionHandler.cs
Lines 348 to 350 in e6db415
| LogRequestHandlerCalled(EndpointName, request.Method); | |
| JsonNode? result = await handler(request, cancellationToken).ConfigureAwait(false); | |
| LogRequestHandlerCompleted(EndpointName, request.Method); |
maybe we could measure the duration here?
sample logs as seen in vscode

Copilot
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request