Skip to content

Add CrewAI tools instrumentation. - #1832

Draft
umaannamalai wants to merge 5 commits into
develop-crewaifrom
crewai-tools
Draft

Add CrewAI tools instrumentation.#1832
umaannamalai wants to merge 5 commits into
develop-crewaifrom
crewai-tools

Conversation

@umaannamalai

Copy link
Copy Markdown
Contributor

This PR adds instrumentation for CrewAI tools.

test_tools.py: This suite covers the ReAct (text) tool path, which routes tool execution through crewai.tools.tool_usage.ToolUsage.

test_tools_native.py: This suite covers the native function-calling tool path, which is the default for OpenAI, Bedrock, etc. models and bypasses ToolUsage entirely

@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Max errors Warnings Elapsed time
✅ ACTION actionlint 9 0 0 0.95s
✅ MARKDOWN markdownlint 7 0 0 0 1.06s
✅ PYTHON ruff 1106 0 0 0 1.03s
✅ PYTHON ruff-format 1106 0 0 0 0.23s
✅ YAML prettier 23 0 0 0 1.11s
✅ YAML v8r 23 0 0 5.39s
✅ YAML yamllint 23 0 0 0.73s

See detailed reports in MegaLinter artifacts

MegaLinter is provided by OX Security
Show us your support by starring ⭐ the repository

@mergify mergify Bot added the tests-failing Tests failing in CI. label Aug 26, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 21.24352% with 152 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.71%. Comparing base (e3c9c1d) to head (33a98e3).

Files with missing lines Patch % Lines
newrelic/hooks/mlmodel_crewai.py 20.00% 145 Missing and 7 partials ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##           develop-crewai    #1832      +/-   ##
==================================================
- Coverage           82.15%   81.71%   -0.44%     
==================================================
  Files                 219      220       +1     
  Lines               27301    27494     +193     
  Branches             4323     4344      +21     
==================================================
+ Hits                22429    22468      +39     
- Misses               3368     3514     +146     
- Partials             1504     1512       +8     

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

tests-failing Tests failing in CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants