Skip to content

Merge Changes for v12.0.0#1684

Merged
TimPansino merged 16 commits intomainfrom
develop-v12.0.0
Mar 10, 2026
Merged

Merge Changes for v12.0.0#1684
TimPansino merged 16 commits intomainfrom
develop-v12.0.0

Conversation

@TimPansino
Copy link
Copy Markdown
Contributor

Overview

  • Merges changes from develop-v12.0.0 onto main for release.

TimPansino and others added 15 commits February 13, 2026 18:05
* Update output message timestamping. (#1627)

* Update output message timestamping.

* Fix LangChain tests.

---------

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

* Guard Azure Functions Utilization (#1632)

* Add guard to azure functions utilization for crashes

* Add regression test

* Improve Strands Tool Error Capturing (#1623)

* Overhaul Strands Agents testing

* Add better error instrumentation to strands tools

* Expand testing for strands tools

* Add better guarding to register_tool instrumentation

* Fix up test logic

* Add tool_id to all strands errors

* Add log message

---------

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

* Add support for BaseException instances as arguments to notice_error (#1571)

* Update implementation of notice_error

* Clean up test_notice_error file

* Add tests for notice_error with exception instances

---------

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

* LangGraph Instrumentation

Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>

* LangChain Agents Instrumentation

Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>

* Update tox versions for LangChain / LangGraph

Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>

* Move GeneratorProxy from Strands to common file

Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>

* More verbose logging in validate_custom_events

Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>

* Improve prompt logging for mock openai server

Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>

* Tweak langchain test folder structure

Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>

* Update Chain tests

Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>

* New Agent testing

Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>

* New Tool testing

Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>

* Expand Test Matrixing

Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>

* Newly recorded responses for LangChain

Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>

* Patch incorrect super() call in GeneratorProxy

Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>

* Better entry point for agent exception testing

* Update AgentObjectProxy to include transform() methods

Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>

* Update event counts in RunnableSequence tests

* Reformatting to kwargs

* Formatting

* Remove storage of agent name on transaction

* Instrument RunnableSequence.stream and astream

* Add correct event counts

* Guard metadata additions

* Add alternate source for agent_name

* Pin lower bound of langchain tests

* Implement tee() and __copy__() for GeneratorProxy

* Slight tweaks

* Fixups.

* Fix pyramid by pinning setuptools (#1647)

* Bump the github_actions group across 1 directory with 7 updates (#1657)

Bumps the github_actions group with 7 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `6.0.1` | `6.0.2` |
| [actions/setup-python](https://github.com/actions/setup-python) | `6.1.0` | `6.2.0` |
| [docker/login-action](https://github.com/docker/login-action) | `3.6.0` | `3.7.0` |
| [docker/build-push-action](https://github.com/docker/build-push-action) | `6.18.0` | `6.19.1` |
| [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) | `3.1.0` | `3.2.0` |
| [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | `7.2.0` | `7.3.0` |
| [github/codeql-action](https://github.com/github/codeql-action) | `4.31.10` | `4.32.2` |



Updates `actions/checkout` from 6.0.1 to 6.0.2
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@8e8c483...de0fac2)

Updates `actions/setup-python` from 6.1.0 to 6.2.0
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@83679a8...a309ff8)

Updates `docker/login-action` from 3.6.0 to 3.7.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](docker/login-action@5e57cd1...c94ce9f)

Updates `docker/build-push-action` from 6.18.0 to 6.19.1
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@2634353...601a80b)

Updates `actions/attest-build-provenance` from 3.1.0 to 3.2.0
- [Release notes](https://github.com/actions/attest-build-provenance/releases)
- [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md)
- [Commits](actions/attest-build-provenance@00014ed...96278af)

Updates `astral-sh/setup-uv` from 7.2.0 to 7.3.0
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](astral-sh/setup-uv@61cb8a9...eac588a)

Updates `github/codeql-action` from 4.31.10 to 4.32.2
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@cdefb33...45cbd0c)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_actions
- dependency-name: actions/setup-python
  dependency-version: 6.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github_actions
- dependency-name: docker/login-action
  dependency-version: 3.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github_actions
- dependency-name: docker/build-push-action
  dependency-version: 6.19.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github_actions
- dependency-name: actions/attest-build-provenance
  dependency-version: 3.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github_actions
- dependency-name: astral-sh/setup-uv
  dependency-version: 7.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github_actions
- dependency-name: github/codeql-action
  dependency-version: 4.32.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github_actions
...

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Uma Annamalai <uannamalai@newrelic.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Remove cross_application_tracer.enabled setting

* Remove cat_enabled fixture

* Remove validate_outbound_headers, make_cross_agent_headers

* Remove path_hash

* Fix tornado tests

* Fix aiohttp tests

* Fix httpx tests

* Fix pika tests

* Fix sanic tests

* Remove more CAT tests

* Remove nr.guid

* Rename synthetics in CatHeaderMixin

* Remove process_response_headers

* Remove validate_external_node_params

* Rename CatHeaderMixin to HeaderMixin

* Remove _generate_response_headers

* Remove insert_incoming_headers

* Remove create_incoming_headers

* Remove X-NewRelic-App-Data

* Remove cross_process_id

* Remove external_txn_name

* Remove referring_transaction_guid

* Remove trip_id

* Remove convert_to_cat_metadata_value

* Change names from cat_ to dt_

* Tweak test

* Remove skip all test file

* Fix syntax from rebase

* Fix httplib test

* Fix Megalinter errors

* Remove commented out code

* Fix requests test

* Rename cross_process_headers to distributed_tracing_headers

* Remove cross agent cat fixtures

* Add back tenr.apdexPerfZone as not CAT specific

* Remove distributed_trace_key from header mixin

* Remove config instead of commenting out

* Put back transactionGuid

* Return None in process_response

* Still pass settings into finalize application settings call

* DT_RESPONSE_CODE->RESPONSE_CODE

* respond_with_dt_header->response_handler

* Fixup: syntax error

* Put back nr.guid if synthetics resource id

* Remove cross_application_tracer.enabled setting

* Remove cat_enabled fixture

* Remove validate_outbound_headers, make_cross_agent_headers

* Remove path_hash

* Fix tornado tests

* Fix aiohttp tests

* Fix httpx tests

* Fix pika tests

* Fix sanic tests

* Remove more CAT tests

* Remove nr.guid

* Rename synthetics in CatHeaderMixin

* Remove process_response_headers

* Remove validate_external_node_params

* Rename CatHeaderMixin to HeaderMixin

* Remove _generate_response_headers

* Remove insert_incoming_headers

* Remove create_incoming_headers

* Remove X-NewRelic-App-Data

* Remove cross_process_id

* Remove external_txn_name

* Remove referring_transaction_guid

* Remove trip_id

* Remove convert_to_cat_metadata_value

* Change names from cat_ to dt_

* Tweak test

* Remove skip all test file

* Fix syntax from rebase

* Fix httplib test

* Fix Megalinter errors

* Remove commented out code

* Fix requests test

* Rename cross_process_headers to distributed_tracing_headers

* Remove cross agent cat fixtures

* Add back tenr.apdexPerfZone as not CAT specific

* Remove distributed_trace_key from header mixin

* Remove config instead of commenting out

* Put back transactionGuid

* Return None in process_response

* Still pass settings into finalize application settings call

* DT_RESPONSE_CODE->RESPONSE_CODE

* respond_with_dt_header->response_handler

* Move codecov.yml file to .github folder (#1516)

* Fixup: syntax error

* Put back nr.guid if synthetics resource id

* Trigger tests

* Remove corresponding config call

* Fixup: spacing

* Fixup

* Trigger tests

* [MegaLinter] Apply linters fixes

* Remove nr.apdexPerfZone & nr.guid on transaction

* Change return None->return

* [MegaLinter] Apply linters fixes

* Add back processing of response status & headers

* Fixup: missing import

* Fixup: missing import

* Apply suggestions from code review

Good call--this is still needed for synthetics

Co-authored-by: Hannah Stepanek <hstepanek@newrelic.com>

* Reviewer requested changes

* Reviewer requested changes

* Clean up aiohttp instrumentation

* [MegaLinter] Apply linters fixes

* Restore missing assertion

* Restore aiohttp hooks

* Add nr.guid back to synthetics validator

* Simplify test logic

* Clarify process_response return value

* Remove unused code path

* Reorder decorators in tests

* Remove unused imports

* Fix attributes_in_action tests

* Repair requests test suite

* Update last 3.8 version

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Tim Pansino <timpansino@gmail.com>
Co-authored-by: Hannah Stepanek <hstepanek@newrelic.com>
Co-authored-by: Timothy Pansino <11214426+TimPansino@users.noreply.github.com>
Co-authored-by: hmstepanek <30059933+hmstepanek@users.noreply.github.com>
* Remove certbundle for DigiCert Root CA distrust

* Provide certificates extra using certifi

* Add certifi to agent unit tests

* Remove unused library from tox

---------

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

github-actions bot commented Mar 10, 2026

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 7 0 0 1.11s
✅ MARKDOWN markdownlint 7 0 0 0 1.46s
✅ PYTHON ruff 1029 0 0 0 1.26s
✅ PYTHON ruff-format 1029 0 0 0 0.36s
✅ YAML prettier 15 0 0 0 1.68s
✅ YAML v8r 15 0 0 5.76s
✅ YAML yamllint 15 0 0 0.71s

See detailed reports in MegaLinter artifacts

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

* Update asgiref (no-op)

* Update wrapt to 2.1.2

* Update opentelemetry protos

* Clean up import of importlib.metadata.entry_points
@TimPansino TimPansino marked this pull request as ready for review March 10, 2026 22:33
@TimPansino TimPansino requested a review from a team as a code owner March 10, 2026 22:33
@TimPansino TimPansino enabled auto-merge March 10, 2026 22:33
@TimPansino TimPansino merged commit f851564 into main Mar 10, 2026
68 checks passed
@TimPansino TimPansino deleted the develop-v12.0.0 branch March 10, 2026 22:54
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.34483% with 272 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.87%. Comparing base (002fc85) to head (28a0b39).
⚠️ Report is 74 commits behind head on main.

Files with missing lines Patch % Lines
newrelic/api/opentelemetry.py 81.35% 50 Missing and 30 partials ⚠️
newrelic/hooks/mlmodel_langchain.py 84.00% 31 Missing and 13 partials ⚠️
newrelic/hooks/hybridagent_opentelemetry.py 70.99% 22 Missing and 16 partials ⚠️
newrelic/core/node_mixin.py 86.84% 9 Missing and 11 partials ⚠️
newrelic/common/llm_utils.py 82.85% 9 Missing and 3 partials ⚠️
newrelic/api/time_trace.py 69.69% 5 Missing and 5 partials ⚠️
newrelic/hooks/mlmodel_strands.py 79.16% 5 Missing and 5 partials ⚠️
newrelic/core/agent.py 64.00% 6 Missing and 3 partials ⚠️
newrelic/hooks/mlmodel_langgraph.py 72.72% 4 Missing and 5 partials ⚠️
newrelic/config.py 93.89% 7 Missing and 1 partial ⚠️
... and 11 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1684      +/-   ##
==========================================
+ Coverage   81.71%   81.87%   +0.15%     
==========================================
  Files         209      214       +5     
  Lines       24416    25574    +1158     
  Branches     3871     4052     +181     
==========================================
+ Hits        19952    20938     +986     
- Misses       3159     3256      +97     
- Partials     1305     1380      +75     

☔ 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.

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.

4 participants