Skip to content

Anthropic SDK Instrumentation#1731

Merged
TimPansino merged 13 commits into
mainfrom
develop-anthropic
May 12, 2026
Merged

Anthropic SDK Instrumentation#1731
TimPansino merged 13 commits into
mainfrom
develop-anthropic

Conversation

@TimPansino

Copy link
Copy Markdown
Contributor

Overview

  • New instrumentation for Anthopic SDK via create or stream APIs.
  • Full test suite with pre-recorded responses.

@TimPansino TimPansino requested a review from a team as a code owner May 12, 2026 18:37
@github-actions

github-actions Bot commented May 12, 2026

Copy link
Copy Markdown

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 8 0 0 1.0s
✅ MARKDOWN markdownlint 7 0 0 0 1.42s
✅ PYTHON ruff 1035 0 0 0 1.04s
✅ PYTHON ruff-format 1035 0 0 0 0.4s
✅ YAML prettier 19 0 0 0 1.61s
✅ YAML v8r 19 0 0 7.09s
✅ YAML yamllint 19 0 0 0.72s

See detailed reports in MegaLinter artifacts

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

@codecov-commenter

codecov-commenter commented May 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.20863% with 45 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.10%. Comparing base (1378203) to head (7b80caf).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
newrelic/hooks/mlmodel_anthropic.py 89.18% 31 Missing and 14 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1731      +/-   ##
==========================================
+ Coverage   81.89%   82.10%   +0.21%     
==========================================
  Files         214      215       +1     
  Lines       25844    26261     +417     
  Branches     4090     4144      +54     
==========================================
+ Hits        21164    21561     +397     
- Misses       3279     3288       +9     
- Partials     1401     1412      +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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

* Bump github/codeql-action in the github_actions group (#1722)

Bumps the github_actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).


Updates `github/codeql-action` from 4.35.2 to 4.35.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@95e58e9...e46ed2c)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.35.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Pin pyOpenSSL for twisted (#1725)

* Unpin OpenTelemetry MySQL instrumenation version (#1726)

* Re-initialize the plugins generator (#1723)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

* Starlette Context Propagation in StreamingResponse (#1720)

* Add instrumentation for iterate_in_threadpool

* Add tests for sync / async generators in starlette StreamingResponse

* Increase testing surface area

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

* Exclude newrelic header by default (#1721)

* Exclude newrelic header by default

* Exclude newrelic header by default

* Change CreatePayload/Success metric to None

* Update inline DT parsing tests

* Rewrite validate_distributed_tracing_header

* Decode utf-8 before header decode

---------

Co-authored-by: Tim Pansino <timpansino@gmail.com>

* Async Generator Task Propagation (#1724)

* Improve handling of AsyncGeneratorProxy

* Add tests for anext inside tasks

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

* Bump github/codeql-action in the github_actions group (#1729)

Bumps the github_actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).


Updates `github/codeql-action` from 4.35.3 to 4.35.4
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@e46ed2c...68bde55)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.35.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Documentation Improvements (#1718)

* Add new sections to contributing

* Documentation cleanup

* Remove and redirect dead links

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lalleh Rafeei <84813886+lrafeei@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Hannah Stepanek <hstepanek@newrelic.com>
@TimPansino TimPansino enabled auto-merge (squash) May 12, 2026 18:59
@mergify mergify Bot added the tests-failing Tests failing in CI. label May 12, 2026
@TimPansino TimPansino merged commit 89476a4 into main May 12, 2026
115 of 120 checks passed
@TimPansino TimPansino deleted the develop-anthropic branch May 12, 2026 19:18
@mergify mergify Bot removed the tests-failing Tests failing in CI. label May 12, 2026
@TimPansino TimPansino added this to the v13.0.0 milestone May 12, 2026
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