Align telemetry with OpenTelemetry MCP semantic conventions (#1139)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
This commit is contained in:
parent
89b67b0e70
commit
d52a7b183d
1 changed files with 226 additions and 77 deletions
|
|
@ -213,6 +213,9 @@ internal sealed partial class McpServerImpl : McpServer
|
|||
|
||||
_negotiatedProtocolVersion = protocolVersion;
|
||||
|
||||
// Update session handler with the negotiated protocol version for telemetry
|
||||
_sessionHandler.NegotiatedProtocolVersion = protocolVersion;
|
||||
|
||||
return new InitializeResult
|
||||
{
|
||||
ProtocolVersion = protocolVersion,
|
||||
|
|
|
|||
Loading…
Reference in a new issue