Skip to content

Conversation

@alenkacz
Copy link

@alenkacz alenkacz commented Dec 8, 2025

No description provided.

@alenkacz alenkacz requested review from Jeffail and birdayz December 8, 2025 07:21
@CLAassistant
Copy link

CLAassistant commented Dec 8, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@rockwotj rockwotj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is getting some changes with respect to the SDK we use here: #3826 hopefully that provides better middleware to hook into (it was needed for authz).

Use the official go-sdk middleware infrastructure (AddReceivingMiddleware)
instead of manual instrumentation. This tracks all MCP method calls and
provides detailed tool-specific metrics (invocations, duration, sizes, errors)
across all transports (stdio, SSE, streamable HTTP).
@alenkacz
Copy link
Author

alenkacz commented Dec 9, 2025

@rockwotj claude made the updates, can you check it out? :)

@@ -0,0 +1,131 @@
// Copyright 2024 Redpanda Data, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

Comment on lines 109 to 110
m.toolInvocations.Incr(1, toolName, "error")
m.toolErrors.Incr(1, toolName, "invocation_error")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why we need both metrics here

@alenkacz
Copy link
Author

@rockwotj addressed

@alenkacz
Copy link
Author

@rockwotj okay, 🤞 now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants