Skip to content

Add MCP Instrumentation#1403

Merged
TimPansino merged 7 commits intomainfrom
feature-mcp-instrumentation
Jun 9, 2025
Merged

Add MCP Instrumentation#1403
TimPansino merged 7 commits intomainfrom
feature-mcp-instrumentation

Conversation

@umaannamalai
Copy link
Contributor

This PR adds instrumentation for MCP prompts, tools, and resources.

umaannamalai and others added 7 commits June 3, 2025 16:49
* Add tool call tracing.

* Add safeguarding.

* Address review feedback.

* [MegaLinter] Apply linters fixes

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* Add instrumentation for MCP resources and prompts.

* [MegaLinter] Apply linters fixes

* Address review comments.

* Remove if conditional.
* Add tool call tracing.

* Add safeguarding.

* Address review feedback.

* [MegaLinter] Apply linters fixes

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* Add instrumentation for MCP resources and prompts.

* [MegaLinter] Apply linters fixes

* Address review comments.

* Remove if conditional.
…relic-python-agent into feature-mcp-instrumentation
@umaannamalai umaannamalai requested a review from a team as a code owner June 9, 2025 21:14
@github-actions
Copy link

github-actions bot commented Jun 9, 2025

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ MARKDOWN markdownlint 7 0 0 0 0.97s
✅ MARKDOWN markdown-link-check 7 0 0 22.01s
✅ PYTHON ruff 907 0 0 0 0.92s
✅ PYTHON ruff-format 907 0 0 0 0.25s
✅ YAML prettier 13 0 0 0 1.25s
✅ YAML v8r 13 0 0 7.05s
✅ YAML yamllint 13 0 0 0.58s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

@TimPansino TimPansino enabled auto-merge June 9, 2025 21:20
@TimPansino TimPansino merged commit 8e7cb4c into main Jun 9, 2025
59 checks passed
@TimPansino TimPansino deleted the feature-mcp-instrumentation branch June 9, 2025 21:24
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 76.47059% with 12 lines in your changes missing coverage. Please review.

Project coverage is 81.49%. Comparing base (a311b33) to head (e41c7e1).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
newrelic/hooks/adapter_mcp.py 76.00% 5 Missing and 7 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1403      +/-   ##
==========================================
+ Coverage   81.29%   81.49%   +0.19%     
==========================================
  Files         204      205       +1     
  Lines       23212    23263      +51     
  Branches     3668     3675       +7     
==========================================
+ Hits        18871    18958      +87     
+ Misses       3119     3072      -47     
- Partials     1222     1233      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@umaannamalai umaannamalai added this to the v10.13.0 milestone Jun 18, 2025
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.

3 participants