Anthropic SDK Instrumentation#1731
Merged
Merged
Conversation
* Define hooks * Configure tests for only create * Add chat completion tests * Add anthropic create instrumentation
Anthropic Streaming Instrumentation
✅MegaLinter analysis: Success
See detailed reports in MegaLinter artifacts
|
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
* 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>
lrafeei
approved these changes
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Overview
createorstreamAPIs.