-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(core): MCP Server - Capture prompt results from prompt function calls #17284
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
Conversation
@sentry review |
packages/core/src/integrations/mcp-server/attributeExtraction.ts
Outdated
Show resolved
Hide resolved
packages/core/src/integrations/mcp-server/attributeExtraction.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome
feel free to merge @betegon (make sure you squash and merge). Also if we need this backported to v9 you'll need to cherry-pick the commit and open it against the |
actually whatever I'll just do it 😄 |
thanks @AbhiPrasad . I'm on PTO this week so it's been a bit difficult to keep up 😆 |
closes #17283
includes these attributes for
mcp.server
spans:mcp.prompt.result.description
mcp.prompt.result.message_content
mcp.prompt.result.message_role
mcp.prompt.result.message_count
Example:

Needed to make
attributeExtraction.ts
<300 lines of code (requirement) so it's now split betweensessionExtraction.ts
,sessionExtraction.ts
andresultExtraction.ts
.So changes explained so it's easier to review:
extractPromptResultAttributes
insideresultExtraction.ts
.piiFiltering.ts
. Just add them to theset
.else if (method === 'prompts/get')
to execute theextractPromptResultAttributes
function.