Skip to content

Conversation

hmstepanek
Copy link
Contributor

Overview

This removes the following middlewares from being instrumented in an effort to reduce the number of spans created when instrumenting django:

  • CsrfViewMiddleware
  • XFrameOptionsMiddleware
  • MessageMiddleware
  • CsrfViewMiddleware
  • CommonMiddleware
  • SecurityMiddleware

Related Github Issue

Spike DT Improvements

@hmstepanek hmstepanek requested a review from a team March 14, 2023 23:44
@hmstepanek hmstepanek marked this pull request as draft March 14, 2023 23:44
@github-actions
Copy link

github-actions bot commented Mar 14, 2023

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON bandit 1 0 4.98s
✅ PYTHON black 4 1 0 1.31s
✅ PYTHON flake8 4 0 0.46s
✅ PYTHON isort 4 1 0 0.21s
❌ PYTHON pylint 4 27 3.9s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@mergify mergify bot added the tests-failing Tests failing in CI. label Mar 14, 2023
@codecov-commenter
Copy link

codecov-commenter commented Mar 14, 2023

Codecov Report

Merging #779 (97e16d2) into develop-dt-improvements (16a0b87) will increase coverage by 0.17%.
The diff coverage is 77.77%.

@@                     Coverage Diff                     @@
##           develop-dt-improvements     #779      +/-   ##
===========================================================
+ Coverage                    65.28%   65.46%   +0.17%     
===========================================================
  Files                           58       58              
  Lines                         6401     6396       -5     
  Branches                      1136     1136              
===========================================================
+ Hits                          4179     4187       +8     
+ Misses                        1895     1881      -14     
- Partials                       327      328       +1     
Impacted Files Coverage Δ
newrelic/hooks/framework_django.py 75.82% <77.77%> (+3.63%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@hmstepanek hmstepanek force-pushed the improve-django branch 3 times, most recently from 29452d7 to f29d1a5 Compare March 15, 2023 16:46
@hmstepanek hmstepanek marked this pull request as ready for review March 15, 2023 22:01
@mergify mergify bot removed the tests-failing Tests failing in CI. label Mar 15, 2023
@hmstepanek hmstepanek changed the base branch from main to develop-dt-improvements March 17, 2023 17:47
@mergify mergify bot added tests-failing Tests failing in CI. and removed tests-failing Tests failing in CI. labels Mar 17, 2023

# These middleware are not useful to wrap as they don't do anything particularly
# interesting that could cause performance issues.
MIDDLEWARE_DENY_WRAP = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In situations like this in the agent, we would typically make this into a frozenset() for performance reasons.

'GZipMiddleware.process_response'), 1),
(('Function/newrelic.hooks.framework_django:'
'browser_timing_insertion'), 1),
(("Function/django.middleware.common:" "CommonMiddleware.process_request"), None),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an advantage to leaving the metrics in for the ignored middlewares with a count of None vs dropping them from the scoped metric list?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this specifically to make sure they were dropped because if you simply don't look for them they could still be there but the test wouldn't catch it.

"django.contrib.messages.middleware:MessageMiddleware",
"django.middleware.csrf:CsrfViewMiddleware",
"django.middleware.common:CommonMiddleware",
"django.middleware.security:SecurityMiddleware",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the warning listed for security middleware here, could it be worth it to keep the SecurityMiddleware spans around to support potential future vulnerability detection?

Copy link
Contributor Author

@hmstepanek hmstepanek Mar 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's good point. Since this middleware just sets security related headers, for vuln detection I imagine we would want to capture those headers. I don't think we would specifically need to hook into this middleware to capture the security related headers though unless I'm missing something. You should be able to capture these headers on the response request independent of wrapping this particular middleware.

@mergify mergify bot added the tests-failing Tests failing in CI. label Mar 21, 2023
@hmstepanek hmstepanek requested a review from umaannamalai March 21, 2023 19:24
Copy link
Contributor

@umaannamalai umaannamalai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@umaannamalai umaannamalai merged commit 019a35d into develop-dt-improvements Mar 21, 2023
@umaannamalai umaannamalai deleted the improve-django branch March 21, 2023 21:57
@mergify mergify bot removed ready-to-merge tests-failing Tests failing in CI. labels Mar 21, 2023
lrafeei pushed a commit that referenced this pull request Aug 9, 2025
* Do not wrap useless middlewares

* Fixup: use frozenset
lrafeei added a commit that referenced this pull request Sep 2, 2025
* Reduce number of spans in django framework (#779)

* Do not wrap useless middlewares

* Fixup: use frozenset

* Add config settings

* Add middleware enable/disable options

* Add testing

* Testing exclude/include settings

* Add optional fixture scope argument

* Rewrite tests to use fixtures

* Add new fixture

* Fix tests

* Fix ruff errors

* MegaLinter Fixes

* Add config file tests

* MegaLinter fixes

* Reviewer changes

* MegaLinter fixes

* Add InstrumentationMiddlewareSettings

* More exclude/include filter tests

* Megalinter fixes

* Tests to increase coverage

* Megalinter fixes

* More coverage tests

* ANOTHER TEST:

---------

Co-authored-by: Hannah Stepanek <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
TimPansino added a commit that referenced this pull request Sep 3, 2025
* Bump the github_actions group with 2 updates (#1466)

Bumps the github_actions group with 2 updates: [codecov/codecov-action](https://github.com/codecov/codecov-action) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `codecov/codecov-action` from 5.4.3 to 5.5.0
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@18283e0...fdcc847)

Updates `github/codeql-action` from 3.29.10 to 3.29.11
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@96f518a...3c3833e)

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

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

* Safeguards for deepest unique path (#1450)

* Safeguards for deepest unique path

* Remove breakpoint

---------

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

* Add try-except to web request parsing (#1449)

* Add try-except to web request parsing

* Fix parsing logic

* Add clarifying comment

---------

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

* Use legacy bitnami for now (#1471)

* Use legacy bitnami for now

* Revert solr change

* Revert zookeeper change

* Add graphene-django instrumentation (#1451)

* Add graphene-django instrumentation

* Increase naming priority

* Remove unused import

* Add sychronous schema tests

* Clean up test files

* Remove commented out code

* Megalinter fixes

* Add operation & resolver tests

* Refine tests

* MegaLinter fixes

* Suggested reviewer changes

* Megalinter fixes

* Django middleware filtering settings (#1444)

* Reduce number of spans in django framework (#779)

* Do not wrap useless middlewares

* Fixup: use frozenset

* Add config settings

* Add middleware enable/disable options

* Add testing

* Testing exclude/include settings

* Add optional fixture scope argument

* Rewrite tests to use fixtures

* Add new fixture

* Fix tests

* Fix ruff errors

* MegaLinter Fixes

* Add config file tests

* MegaLinter fixes

* Reviewer changes

* MegaLinter fixes

* Add InstrumentationMiddlewareSettings

* More exclude/include filter tests

* Megalinter fixes

* Tests to increase coverage

* Megalinter fixes

* More coverage tests

* ANOTHER TEST:

---------

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

* Pin bitnami images to bitnamilegacy (#1475)

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

* Distributed CI Image Build (#1478)

* Distribute build of CI image across runners

* Add weekly CI image rebuild

* Add rust to toolchain

* Add human readable job names

* Linting

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Lalleh Rafeei <[email protected]>
Co-authored-by: Hannah Stepanek <[email protected]>
TimPansino added a commit that referenced this pull request Sep 30, 2025
* Bump the github_actions group with 2 updates (#1466)

Bumps the github_actions group with 2 updates: [codecov/codecov-action](https://github.com/codecov/codecov-action) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `codecov/codecov-action` from 5.4.3 to 5.5.0
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@18283e0...fdcc847)

Updates `github/codeql-action` from 3.29.10 to 3.29.11
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@96f518a...3c3833e)

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

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

* Safeguards for deepest unique path (#1450)

* Safeguards for deepest unique path

* Remove breakpoint

---------

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

* Add try-except to web request parsing (#1449)

* Add try-except to web request parsing

* Fix parsing logic

* Add clarifying comment

---------

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

* Use legacy bitnami for now (#1471)

* Use legacy bitnami for now

* Revert solr change

* Revert zookeeper change

* Add graphene-django instrumentation (#1451)

* Add graphene-django instrumentation

* Increase naming priority

* Remove unused import

* Add sychronous schema tests

* Clean up test files

* Remove commented out code

* Megalinter fixes

* Add operation & resolver tests

* Refine tests

* MegaLinter fixes

* Suggested reviewer changes

* Megalinter fixes

* Django middleware filtering settings (#1444)

* Reduce number of spans in django framework (#779)

* Do not wrap useless middlewares

* Fixup: use frozenset

* Add config settings

* Add middleware enable/disable options

* Add testing

* Testing exclude/include settings

* Add optional fixture scope argument

* Rewrite tests to use fixtures

* Add new fixture

* Fix tests

* Fix ruff errors

* MegaLinter Fixes

* Add config file tests

* MegaLinter fixes

* Reviewer changes

* MegaLinter fixes

* Add InstrumentationMiddlewareSettings

* More exclude/include filter tests

* Megalinter fixes

* Tests to increase coverage

* Megalinter fixes

* More coverage tests

* ANOTHER TEST:

---------

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

* Pin bitnami images to bitnamilegacy (#1475)

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

* Distributed CI Image Build (#1478)

* Distribute build of CI image across runners

* Add weekly CI image rebuild

* Add rust to toolchain

* Add human readable job names

* Linting

* Remove old apis (#1479)

* Remove add_custom_parameter(s)

* Remove get_browser_timing_footer

* Remove ignore_errors arg from error_trace

* Remove record_exception

* Remove accept_distributed_trace_payload

* Remove create_distributed_trace_payload

* Remove lambda handler

* Remove ObjectWrapper

* Remove in_function API

* Remove out_function API

* Remove pre_function API

* Remove post_function API

* Remove NewRelicLogHandler

* Fix Megalinter errors

---------

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

* Bump the github_actions group with 3 updates (#1473)

Bumps the github_actions group with 3 updates: [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance), [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `actions/attest-build-provenance` from 2.4.0 to 3.0.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@e8998f9...977bb37)

Updates `aquasecurity/trivy-action` from 0.32.0 to 0.33.0
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](aquasecurity/trivy-action@dc5a429...f9424c1)

Updates `github/codeql-action` from 3.29.11 to 3.30.0
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@3c3833e...2d92b76)

---
updated-dependencies:
- dependency-name: actions/attest-build-provenance
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github_actions
- dependency-name: aquasecurity/trivy-action
  dependency-version: 0.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github_actions
- dependency-name: github/codeql-action
  dependency-version: 3.30.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github_actions
...

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

* Remove attestations for attestation files by specifying extensions (#1476)

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

* Add w3c traceparent header support (#1448)

* Add config settings

* Add traceparent logic

* Log warning if value is not recognized

* Move & rename function_not_called

* Use existing function called validators

* Fixup: lint log message

* Fixup: validator import paths

* Fixup: validator import path

* Fixup: validator import path

* Reformat w/ ruff

* Use legacy bitnami for now (#1471)

* Use legacy bitnami for now

* Revert solr change

* Revert zookeeper change

* Add graphene-django instrumentation (#1451)

* Add graphene-django instrumentation

* Increase naming priority

* Remove unused import

* Add sychronous schema tests

* Clean up test files

* Remove commented out code

* Megalinter fixes

* Add operation & resolver tests

* Refine tests

* MegaLinter fixes

* Suggested reviewer changes

* Megalinter fixes

* Fixup: paths

* Fixup: reformat lint changes

---------

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

* Add global_settings fallback in ES instrumentation (#1454)

* Fallback to global_settings in elasticsearch

* Fallback to global_settings in graphql

* Fixup: ruff lint

---------

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

* Remove instrumentation for options method on async ElasticSearch client. (#1477)

* Remove instrumentation for options method on async ES client.

* Add skip if lower than v8.

* Ignore options method in instrumented methods test.

* Lint

---------

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

* Add Converse API non-streaming support. (#1428)

* Add Converse API support.

* Update aiobotocore instrumentation.

* Add support for converse calls made with aioboto3 clients.

* Linting fixes.

* Review comments.

* Remove comment from get call

* Trigger tests

* Lint

---------

Co-authored-by: Hannah Stepanek <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Tim Pansino <[email protected]>

* Remove old settings (#1482)

* Remove transaction_tracer.capture_attributes

* Remove error_collector.capture_attributes

* Remove browser_monitoring.capture_attributes

* Remove analytic_events.capture_attributes

* Remove analytics_events.enabled

* Remove error_collector.ignore_errors

* Remove strip_exception_messages.whitelist

* Remove ssl as a setting

* Remove agent_limits.merge_stats_maximum setting

* Remove ignore_params setting

* ignore_errors removed from test

* Fix megalinter errors

* Fix falcon tests for master branch (#1484)

* Bump the github_actions group with 5 updates (#1483)

Bumps the github_actions group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [actions/setup-python](https://github.com/actions/setup-python) | `5.6.0` | `6.0.0` |
| [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) | `1.12.4` | `1.13.0` |
| [codecov/codecov-action](https://github.com/codecov/codecov-action) | `5.5.0` | `5.5.1` |
| [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) | `0.33.0` | `0.33.1` |
| [github/codeql-action](https://github.com/github/codeql-action) | `3.30.0` | `3.30.1` |


Updates `actions/setup-python` from 5.6.0 to 6.0.0
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@a26af69...e797f83)

Updates `pypa/gh-action-pypi-publish` from 1.12.4 to 1.13.0
- [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases)
- [Commits](pypa/gh-action-pypi-publish@76f52bc...ed0c539)

Updates `codecov/codecov-action` from 5.5.0 to 5.5.1
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@fdcc847...5a10915)

Updates `aquasecurity/trivy-action` from 0.33.0 to 0.33.1
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](aquasecurity/trivy-action@f9424c1...b6643a2)

Updates `github/codeql-action` from 3.30.0 to 3.30.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@2d92b76...f1f6e5f)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github_actions
- dependency-name: pypa/gh-action-pypi-publish
  dependency-version: 1.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github_actions
- dependency-name: codecov/codecov-action
  dependency-version: 5.5.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_actions
- dependency-name: aquasecurity/trivy-action
  dependency-version: 0.33.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_actions
- dependency-name: github/codeql-action
  dependency-version: 3.30.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_actions
...

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

* Updated Packaging (#1480)

* Remove unused linters from pyproject.toml

* Move packaging config to pyproject.toml

* Update setuptools_scm requirement

* Add exclude for version file

---------

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

* Enable coverage for motor instrumentation (#1487)

* Drop CI Image Build Caching (#1493)

* Add deprecation warning for modules (#1490)

* Add deprecation warning for modules

* Megalinter fixes

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

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


Updates `github/codeql-action` from 3.30.1 to 3.30.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@f1f6e5f...192325c)

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

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

* Add Additional Delay to Test Startup Fixture (#1494)

* Add additional delay to test startup fixture

* Fix assertion error message

---------

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

* Temporarily remove pypy310 test from pymysql and aiomysql (#1501)

* Remove pymysql pypy310 test

* Remove aiomysql pypy310 test

* Falcon sanic testing fix (#1495)

* Remove unsupported Sanic from tests

* Remove unsupported Falcon from tests

---------

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

* Camunda Pyzeebe Instrumentation (#1385)

* add initial pyzeebe instrumentation/tests

* second attempt at tests (failing)

* updated tests - 1/2 passing locally

* combine function_trace client tests

* fix: py agent team feedback #1

* fix: pyzeebe tests

* chore: ruff formatting

* fix: review updates #2

* fix: next round of updates

* fix: more updates based on feedback

* fix: resource parameter capture

* chore: ruff lint fixes

* fix: no txn tests;add resourceCount attr back

---------

Co-authored-by: Uma Annamalai <[email protected]>

* Format with ruff (#1505)

* Update deprecated urllib APIs (#1499)

* Update deprecated urllib APIs

* Megalinter fixes

* Megalinter fixes

* Add skipif and revert urllib tests

* Megalinter fixes

---------

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

* Add deprecation warning to WSGI environ dict settings (#1496)

* WSGI environ dict deprecation warning

* Megalinter fixes

* Megalinter fixes

* Change name of deprecated WSGI settings list

* Megalinter fixes

---------

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

* Merge main into develop-11.0.0 (#1503)

* Enable coverage for motor instrumentation (#1487)

* Drop CI Image Build Caching (#1493)

* Add deprecation warning for modules (#1490)

* Add deprecation warning for modules

* Megalinter fixes

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

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


Updates `github/codeql-action` from 3.30.1 to 3.30.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@f1f6e5f...192325c)

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

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

* Add Additional Delay to Test Startup Fixture (#1494)

* Add additional delay to test startup fixture

* Fix assertion error message

---------

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

* Temporarily remove pypy310 test from pymysql and aiomysql (#1501)

* Remove pymysql pypy310 test

* Remove aiomysql pypy310 test

* Falcon sanic testing fix (#1495)

* Remove unsupported Sanic from tests

* Remove unsupported Falcon from tests

---------

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

* Camunda Pyzeebe Instrumentation (#1385)

* add initial pyzeebe instrumentation/tests

* second attempt at tests (failing)

* updated tests - 1/2 passing locally

* combine function_trace client tests

* fix: py agent team feedback #1

* fix: pyzeebe tests

* chore: ruff formatting

* fix: review updates #2

* fix: next round of updates

* fix: more updates based on feedback

* fix: resource parameter capture

* chore: ruff lint fixes

* fix: no txn tests;add resourceCount attr back

---------

Co-authored-by: Uma Annamalai <[email protected]>

* Format with ruff (#1505)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Timothy Pansino <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Uma Annamalai <[email protected]>
Co-authored-by: Keagan Peet <[email protected]>

* Swap setting deprecations (#1497)

* Deprecate analytics_events.max_samples_stored

* Deprecate transaction_events.max_samples_stored

* Deprecate span_events.max_samples_stored

* Deprecate event_harvest_config.harvest_limits.error_event_data

* Deprecate custom_insights_events.max_samples_stored

* Deprecate application_logging.forwarding.max_samples_stored

* Add settings to core/config

* Megalinter fixes

* Revert env var to previous value

* Add variable for default value

* Use preferred settings in agent

* Megalinter fixes

* Reviewer changes

---------

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

* Drop Python 3.7 Support (#1491)

* Drop monotonic C extension

* Add warning in setup.py

* Format and lint setup.py

* Fix 3.7 specific logic for Flask tests

* Removing all logic related to Python 3.7

* Format with ruff

* Remove py37 tests from tox

* Remove Python 2 syntax checks

* Sort agent.py file

* Fix merge commits

* Remove unsupported Sanic from tests

* Remove unsupported Falcon from tests

* Megalinter fixes

* Redo changes to setup.py

---------

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

* Merge pull request #1508 from newrelic/fix-psycopg-as-string

Fix psycopg as_string()

* Merge pull request #1513 from newrelic/fix-pyzeebe-pypy

Remove PyPy From PyZeebe Tests

* Fix merge conflict leftovers from removing Python 3.7 (#1515)

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

* Update Megalinter (#1510)

* Update megalinter workflow

* Update megalinter version

* Fix RUF059: unused-unpacked-variable

* Fix PLW1641: eq-without-hash

---------

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

* Add autogen instrumentation and MCP updates (#1520)

* Add instrumentation for autogen MCP tool adapter. (#1409)

* Add instrumentation for MCP tool adapter.

* [MegaLinter] Apply linters fixes

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Autogen Agent Instrumentation (#1412)

* Add autogen agent instrumentation.

* Address review feedback.

* [MegaLinter] Apply linters fixes

---------

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

* Sync autogen feature branch (#1472)

* Add instrumentation for autogen MCP tool adapter. (#1409)

* Add instrumentation for MCP tool adapter.

* [MegaLinter] Apply linters fixes

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Autogen Agent Instrumentation (#1412)

* Add autogen agent instrumentation.

* Address review feedback.

* [MegaLinter] Apply linters fixes

---------

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

* Add instrumentation for autogen MCP tool adapter. (#1409)

* Add instrumentation for MCP tool adapter.

* [MegaLinter] Apply linters fixes

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Autogen Agent Instrumentation (#1412)

* Add autogen agent instrumentation.

* Address review feedback.

* [MegaLinter] Apply linters fixes

---------

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

* Save linking metadata on generator proxy.

* Add comments to changes in instrumentation.

* Add LLMAgent events to autogen instrumentation. (#1455)

---------

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

* MCP Streamable HTTP Spans (DO NOT MERGE YET) (#1462)

* Add tool manager span.

* Add tool manager spans to MCP instrumentation to support streaming.

---------

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

* Update MCP instrumentation to check if AIM is enabled. (#1456)

* Update MCP instrumentation to check if AIM is enabled.

* Linting

---------

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

* Add clause to avoid reporting empty content in openai. (#1517)

* Add instrumentation for autogen MCP tool adapter. (#1409)

* Add instrumentation for MCP tool adapter.

* [MegaLinter] Apply linters fixes

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Autogen Agent Instrumentation (#1412)

* Add autogen agent instrumentation.

* Address review feedback.

* [MegaLinter] Apply linters fixes

---------

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

* Sync autogen feature branch (#1472)

* Add instrumentation for autogen MCP tool adapter. (#1409)

* Add instrumentation for MCP tool adapter.

* [MegaLinter] Apply linters fixes

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Autogen Agent Instrumentation (#1412)

* Add autogen agent instrumentation.

* Address review feedback.

* [MegaLinter] Apply linters fixes

---------

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

* Add instrumentation for autogen MCP tool adapter. (#1409)

* Add instrumentation for MCP tool adapter.

* [MegaLinter] Apply linters fixes

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Autogen Agent Instrumentation (#1412)

* Add autogen agent instrumentation.

* Address review feedback.

* [MegaLinter] Apply linters fixes

---------

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

* Save linking metadata on generator proxy.

* Add comments to changes in instrumentation.

* Add LLMAgent events to autogen instrumentation. (#1455)

---------

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

* MCP Streamable HTTP Spans (DO NOT MERGE YET) (#1462)

* Add tool manager span.

* Add tool manager spans to MCP instrumentation to support streaming.

---------

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

* Update MCP instrumentation to check if AIM is enabled. (#1456)

* Update MCP instrumentation to check if AIM is enabled.

* Linting

---------

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

* Add clause to avoid reporting empty content in openai. (#1517)

* Update validator path.

* Add MCP adapter test for no transaction.

* Linting fixups.

* Linting

---------

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

* Switch to Using uv in CI (#1514)

* Switch infra to uv

* Update Dockerfile for uv

* Configure uv with pinned python and shims

* Use uv in pre-commit

* Move uv download manual setting

* Add asv tool for the future

* Benchmarking Infrastructure (#1506)

* Use asv for benchmarking

* Linting

---------

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

* Fix CI Image (#1523)

* Restore all ubuntu packages

* Remove pycurl options

* Reconfigure uv installation process

* Fix for azure_functions_worker venvs

---------

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

* Bump the github_actions group with 2 updates (#1522)

Bumps the github_actions group with 2 updates: [docker/login-action](https://github.com/docker/login-action) and [github/codeql-action](https://github.com/github/codeql-action).


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

Updates `github/codeql-action` from 3.30.3 to 3.30.5
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@192325c...3599b3b)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 3.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github_actions
- dependency-name: github/codeql-action
  dependency-version: 3.30.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_actions
...

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

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Lalleh Rafeei <[email protected]>
Co-authored-by: Hannah Stepanek <[email protected]>
Co-authored-by: Uma Annamalai <[email protected]>
Co-authored-by: Keagan Peet <[email protected]>
TimPansino added a commit that referenced this pull request Oct 1, 2025
* Add Windows Test Runners for All Core Test Suites (#1439)

* Don't build some extensions on windows

* Add windows test runners for all core test suites

* Update get-envs script to replace grep

* Fix missing lambda handler deprecation

* Fix paths in logs in context tests

* agent_features: Skip all failing windows tests for now

* agent_unittests: Skip all failing windows tests for now

* cross_agent: Skip all failing windows tests for now

* Convert username lookup to more portable option

* Fix handling of health dir paths on Windows

* Fix issues related to tempfile on Windows

* Fix encoding in test fixtures

* Fix globbing on Windows

* Format

* Fix Python 3.7 compat

* Drop windows py37 tests

* Update build_ext_errors in setup.py for modern versions

* Reduce windows testing scope to 3.13

* Change out windows xfails

* Enable colors in CI logs on Windows

* Update all python-version specs in CI

* Update coverage source paths

* Add inline pytest ids to unittests

* Add tests for all OS and arch combinations

* Remove mac tests for now

* Disable agent_streaming on windows arm64

* Lint with actionlint

* Add wait to collector_available_fixture to fix race condition

* Docker Utilization Disabled on Windows (#1459)

* Disable docker utilization on Windows by default

* Fix testing issue

---------

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

* Fix run-program PATH search on Windows (#1463)

* Fix run-program PATH search on Windows

* Linting

---------

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

* Build Windows Wheels (#1458)

* Add wheel builds for windows

* Format with megalinter

* Add logic for uploading to pypi vs testpypi

---------

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

* Windows Certificate Loading (#1460)

* Fix loading of certificate bundle on Windows

* Remove skip marker

---------

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

* Fix Compression Testing on Windows (#1470)

* Drop failing marker

* Fix compression testing on windows

* Prefix unused vars

* Merge main into develop-windows (#1474)

* Bump the github_actions group with 2 updates (#1466)

Bumps the github_actions group with 2 updates: [codecov/codecov-action](https://github.com/codecov/codecov-action) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `codecov/codecov-action` from 5.4.3 to 5.5.0
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@18283e0...fdcc847)

Updates `github/codeql-action` from 3.29.10 to 3.29.11
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@96f518a...3c3833e)

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

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

* Safeguards for deepest unique path (#1450)

* Safeguards for deepest unique path

* Remove breakpoint

---------

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

* Add try-except to web request parsing (#1449)

* Add try-except to web request parsing

* Fix parsing logic

* Add clarifying comment

---------

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

* Use legacy bitnami for now (#1471)

* Use legacy bitnami for now

* Revert solr change

* Revert zookeeper change

* Add graphene-django instrumentation (#1451)

* Add graphene-django instrumentation

* Increase naming priority

* Remove unused import

* Add sychronous schema tests

* Clean up test files

* Remove commented out code

* Megalinter fixes

* Add operation & resolver tests

* Refine tests

* MegaLinter fixes

* Suggested reviewer changes

* Megalinter fixes

* Django middleware filtering settings (#1444)

* Reduce number of spans in django framework (#779)

* Do not wrap useless middlewares

* Fixup: use frozenset

* Add config settings

* Add middleware enable/disable options

* Add testing

* Testing exclude/include settings

* Add optional fixture scope argument

* Rewrite tests to use fixtures

* Add new fixture

* Fix tests

* Fix ruff errors

* MegaLinter Fixes

* Add config file tests

* MegaLinter fixes

* Reviewer changes

* MegaLinter fixes

* Add InstrumentationMiddlewareSettings

* More exclude/include filter tests

* Megalinter fixes

* Tests to increase coverage

* Megalinter fixes

* More coverage tests

* ANOTHER TEST:

---------

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

* Pin bitnami images to bitnamilegacy (#1475)

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

* Distributed CI Image Build (#1478)

* Distribute build of CI image across runners

* Add weekly CI image rebuild

* Add rust to toolchain

* Add human readable job names

* Linting

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Lalleh Rafeei <[email protected]>
Co-authored-by: Hannah Stepanek <[email protected]>

* Fix thread utilization on Windows (#1469)

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

* Add timer resolution warning on init (#1481)

* Merge main into develop-windows (#1527)

* Bump the github_actions group with 2 updates (#1466)

Bumps the github_actions group with 2 updates: [codecov/codecov-action](https://github.com/codecov/codecov-action) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `codecov/codecov-action` from 5.4.3 to 5.5.0
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@18283e0...fdcc847)

Updates `github/codeql-action` from 3.29.10 to 3.29.11
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@96f518a...3c3833e)

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

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

* Safeguards for deepest unique path (#1450)

* Safeguards for deepest unique path

* Remove breakpoint

---------

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

* Add try-except to web request parsing (#1449)

* Add try-except to web request parsing

* Fix parsing logic

* Add clarifying comment

---------

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

* Use legacy bitnami for now (#1471)

* Use legacy bitnami for now

* Revert solr change

* Revert zookeeper change

* Add graphene-django instrumentation (#1451)

* Add graphene-django instrumentation

* Increase naming priority

* Remove unused import

* Add sychronous schema tests

* Clean up test files

* Remove commented out code

* Megalinter fixes

* Add operation & resolver tests

* Refine tests

* MegaLinter fixes

* Suggested reviewer changes

* Megalinter fixes

* Django middleware filtering settings (#1444)

* Reduce number of spans in django framework (#779)

* Do not wrap useless middlewares

* Fixup: use frozenset

* Add config settings

* Add middleware enable/disable options

* Add testing

* Testing exclude/include settings

* Add optional fixture scope argument

* Rewrite tests to use fixtures

* Add new fixture

* Fix tests

* Fix ruff errors

* MegaLinter Fixes

* Add config file tests

* MegaLinter fixes

* Reviewer changes

* MegaLinter fixes

* Add InstrumentationMiddlewareSettings

* More exclude/include filter tests

* Megalinter fixes

* Tests to increase coverage

* Megalinter fixes

* More coverage tests

* ANOTHER TEST:

---------

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

* Pin bitnami images to bitnamilegacy (#1475)

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

* Distributed CI Image Build (#1478)

* Distribute build of CI image across runners

* Add weekly CI image rebuild

* Add rust to toolchain

* Add human readable job names

* Linting

* Remove old apis (#1479)

* Remove add_custom_parameter(s)

* Remove get_browser_timing_footer

* Remove ignore_errors arg from error_trace

* Remove record_exception

* Remove accept_distributed_trace_payload

* Remove create_distributed_trace_payload

* Remove lambda handler

* Remove ObjectWrapper

* Remove in_function API

* Remove out_function API

* Remove pre_function API

* Remove post_function API

* Remove NewRelicLogHandler

* Fix Megalinter errors

---------

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

* Bump the github_actions group with 3 updates (#1473)

Bumps the github_actions group with 3 updates: [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance), [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `actions/attest-build-provenance` from 2.4.0 to 3.0.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@e8998f9...977bb37)

Updates `aquasecurity/trivy-action` from 0.32.0 to 0.33.0
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](aquasecurity/trivy-action@dc5a429...f9424c1)

Updates `github/codeql-action` from 3.29.11 to 3.30.0
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@3c3833e...2d92b76)

---
updated-dependencies:
- dependency-name: actions/attest-build-provenance
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github_actions
- dependency-name: aquasecurity/trivy-action
  dependency-version: 0.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github_actions
- dependency-name: github/codeql-action
  dependency-version: 3.30.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github_actions
...

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

* Remove attestations for attestation files by specifying extensions (#1476)

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

* Add w3c traceparent header support (#1448)

* Add config settings

* Add traceparent logic

* Log warning if value is not recognized

* Move & rename function_not_called

* Use existing function called validators

* Fixup: lint log message

* Fixup: validator import paths

* Fixup: validator import path

* Fixup: validator import path

* Reformat w/ ruff

* Use legacy bitnami for now (#1471)

* Use legacy bitnami for now

* Revert solr change

* Revert zookeeper change

* Add graphene-django instrumentation (#1451)

* Add graphene-django instrumentation

* Increase naming priority

* Remove unused import

* Add sychronous schema tests

* Clean up test files

* Remove commented out code

* Megalinter fixes

* Add operation & resolver tests

* Refine tests

* MegaLinter fixes

* Suggested reviewer changes

* Megalinter fixes

* Fixup: paths

* Fixup: reformat lint changes

---------

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

* Add global_settings fallback in ES instrumentation (#1454)

* Fallback to global_settings in elasticsearch

* Fallback to global_settings in graphql

* Fixup: ruff lint

---------

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

* Remove instrumentation for options method on async ElasticSearch client. (#1477)

* Remove instrumentation for options method on async ES client.

* Add skip if lower than v8.

* Ignore options method in instrumented methods test.

* Lint

---------

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

* Add Converse API non-streaming support. (#1428)

* Add Converse API support.

* Update aiobotocore instrumentation.

* Add support for converse calls made with aioboto3 clients.

* Linting fixes.

* Review comments.

* Remove comment from get call

* Trigger tests

* Lint

---------

Co-authored-by: Hannah Stepanek <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Tim Pansino <[email protected]>

* Remove old settings (#1482)

* Remove transaction_tracer.capture_attributes

* Remove error_collector.capture_attributes

* Remove browser_monitoring.capture_attributes

* Remove analytic_events.capture_attributes

* Remove analytics_events.enabled

* Remove error_collector.ignore_errors

* Remove strip_exception_messages.whitelist

* Remove ssl as a setting

* Remove agent_limits.merge_stats_maximum setting

* Remove ignore_params setting

* ignore_errors removed from test

* Fix megalinter errors

* Fix falcon tests for master branch (#1484)

* Bump the github_actions group with 5 updates (#1483)

Bumps the github_actions group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [actions/setup-python](https://github.com/actions/setup-python) | `5.6.0` | `6.0.0` |
| [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) | `1.12.4` | `1.13.0` |
| [codecov/codecov-action](https://github.com/codecov/codecov-action) | `5.5.0` | `5.5.1` |
| [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) | `0.33.0` | `0.33.1` |
| [github/codeql-action](https://github.com/github/codeql-action) | `3.30.0` | `3.30.1` |


Updates `actions/setup-python` from 5.6.0 to 6.0.0
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@a26af69...e797f83)

Updates `pypa/gh-action-pypi-publish` from 1.12.4 to 1.13.0
- [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases)
- [Commits](pypa/gh-action-pypi-publish@76f52bc...ed0c539)

Updates `codecov/codecov-action` from 5.5.0 to 5.5.1
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@fdcc847...5a10915)

Updates `aquasecurity/trivy-action` from 0.33.0 to 0.33.1
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](aquasecurity/trivy-action@f9424c1...b6643a2)

Updates `github/codeql-action` from 3.30.0 to 3.30.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@2d92b76...f1f6e5f)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github_actions
- dependency-name: pypa/gh-action-pypi-publish
  dependency-version: 1.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github_actions
- dependency-name: codecov/codecov-action
  dependency-version: 5.5.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_actions
- dependency-name: aquasecurity/trivy-action
  dependency-version: 0.33.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_actions
- dependency-name: github/codeql-action
  dependency-version: 3.30.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_actions
...

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

* Updated Packaging (#1480)

* Remove unused linters from pyproject.toml

* Move packaging config to pyproject.toml

* Update setuptools_scm requirement

* Add exclude for version file

---------

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

* Enable coverage for motor instrumentation (#1487)

* Drop CI Image Build Caching (#1493)

* Add deprecation warning for modules (#1490)

* Add deprecation warning for modules

* Megalinter fixes

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

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


Updates `github/codeql-action` from 3.30.1 to 3.30.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@f1f6e5f...192325c)

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

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

* Add Additional Delay to Test Startup Fixture (#1494)

* Add additional delay to test startup fixture

* Fix assertion error message

---------

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

* Temporarily remove pypy310 test from pymysql and aiomysql (#1501)

* Remove pymysql pypy310 test

* Remove aiomysql pypy310 test

* Falcon sanic testing fix (#1495)

* Remove unsupported Sanic from tests

* Remove unsupported Falcon from tests

---------

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

* Camunda Pyzeebe Instrumentation (#1385)

* add initial pyzeebe instrumentation/tests

* second attempt at tests (failing)

* updated tests - 1/2 passing locally

* combine function_trace client tests

* fix: py agent team feedback #1

* fix: pyzeebe tests

* chore: ruff formatting

* fix: review updates #2

* fix: next round of updates

* fix: more updates based on feedback

* fix: resource parameter capture

* chore: ruff lint fixes

* fix: no txn tests;add resourceCount attr back

---------

Co-authored-by: Uma Annamalai <[email protected]>

* Format with ruff (#1505)

* Update deprecated urllib APIs (#1499)

* Update deprecated urllib APIs

* Megalinter fixes

* Megalinter fixes

* Add skipif and revert urllib tests

* Megalinter fixes

---------

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

* Add deprecation warning to WSGI environ dict settings (#1496)

* WSGI environ dict deprecation warning

* Megalinter fixes

* Megalinter fixes

* Change name of deprecated WSGI settings list

* Megalinter fixes

---------

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

* Merge main into develop-11.0.0 (#1503)

* Enable coverage for motor instrumentation (#1487)

* Drop CI Image Build Caching (#1493)

* Add deprecation warning for modules (#1490)

* Add deprecation warning for modules

* Megalinter fixes

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

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


Updates `github/codeql-action` from 3.30.1 to 3.30.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@f1f6e5f...192325c)

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

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

* Add Additional Delay to Test Startup Fixture (#1494)

* Add additional delay to test startup fixture

* Fix assertion error message

---------

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

* Temporarily remove pypy310 test from pymysql and aiomysql (#1501)

* Remove pymysql pypy310 test

* Remove aiomysql pypy310 test

* Falcon sanic testing fix (#1495)

* Remove unsupported Sanic from tests

* Remove unsupported Falcon from tests

---------

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

* Camunda Pyzeebe Instrumentation (#1385)

* add initial pyzeebe instrumentation/tests

* second attempt at tests (failing)

* updated tests - 1/2 passing locally

* combine function_trace client tests

* fix: py agent team feedback #1

* fix: pyzeebe tests

* chore: ruff formatting

* fix: review updates #2

* fix: next round of updates

* fix: more updates based on feedback

* fix: resource parameter capture

* chore: ruff lint fixes

* fix: no txn tests;add resourceCount attr back

---------

Co-authored-by: Uma Annamalai <[email protected]>

* Format with ruff (#1505)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Timothy Pansino <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Uma Annamalai <[email protected]>
Co-authored-by: Keagan Peet <[email protected]>

* Swap setting deprecations (#1497)

* Deprecate analytics_events.max_samples_stored

* Deprecate transaction_events.max_samples_stored

* Deprecate span_events.max_samples_stored

* Deprecate event_harvest_config.harvest_limits.error_event_data

* Deprecate custom_insights_events.max_samples_stored

* Deprecate application_logging.forwarding.max_samples_stored

* Add settings to core/config

* Megalinter fixes

* Revert env var to previous value

* Add variable for default value

* Use preferred settings in agent

* Megalinter fixes

* Reviewer changes

---------

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

* Drop Python 3.7 Support (#1491)

* Drop monotonic C extension

* Add warning in setup.py

* Format and lint setup.py

* Fix 3.7 specific logic for Flask tests

* Removing all logic related to Python 3.7

* Format with ruff

* Remove py37 tests from tox

* Remove Python 2 syntax checks

* Sort agent.py file

* Fix merge commits

* Remove unsupported Sanic from tests

* Remove unsupported Falcon from tests

* Megalinter fixes

* Redo changes to setup.py

---------

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

* Merge pull request #1508 from newrelic/fix-psycopg-as-string

Fix psycopg as_string()

* Merge pull request #1513 from newrelic/fix-pyzeebe-pypy

Remove PyPy From PyZeebe Tests

* Fix merge conflict leftovers from removing Python 3.7 (#1515)

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

* Update Megalinter (#1510)

* Update megalinter workflow

* Update megalinter version

* Fix RUF059: unused-unpacked-variable

* Fix PLW1641: eq-without-hash

---------

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

* Add autogen instrumentation and MCP updates (#1520)

* Add instrumentation for autogen MCP tool adapter. (#1409)

* Add instrumentation for MCP tool adapter.

* [MegaLinter] Apply linters fixes

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Autogen Agent Instrumentation (#1412)

* Add autogen agent instrumentation.

* Address review feedback.

* [MegaLinter] Apply linters fixes

---------

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

* Sync autogen feature branch (#1472)

* Add instrumentation for autogen MCP tool adapter. (#1409)

* Add instrumentation for MCP tool adapter.

* [MegaLinter] Apply linters fixes

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Autogen Agent Instrumentation (#1412)

* Add autogen agent instrumentation.

* Address review feedback.

* [MegaLinter] Apply linters fixes

---------

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

* Add instrumentation for autogen MCP tool adapter. (#1409)

* Add instrumentation for MCP tool adapter.

* [MegaLinter] Apply linters fixes

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Autogen Agent Instrumentation (#1412)

* Add autogen agent instrumentation.

* Address review feedback.

* [MegaLinter] Apply linters fixes

---------

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

* Save linking metadata on generator proxy.

* Add comments to changes in instrumentation.

* Add LLMAgent events to autogen instrumentation. (#1455)

---------

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

* MCP Streamable HTTP Spans (DO NOT MERGE YET) (#1462)

* Add tool manager span.

* Add tool manager spans to MCP instrumentation to support streaming.

---------

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

* Update MCP instrumentation to check if AIM is enabled. (#1456)

* Update MCP instrumentation to check if AIM is enabled.

* Linting

---------

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

* Add clause to avoid reporting empty content in openai. (#1517)

* Add instrumentation for autogen MCP tool adapter. (#1409)

* Add instrumentation for MCP tool adapter.

* [MegaLinter] Apply linters fixes

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Autogen Agent Instrumentation (#1412)

* Add autogen agent instrumentation.

* Address review feedback.

* [MegaLinter] Apply linters fixes

---------

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

* Sync autogen feature branch (#1472)

* Add instrumentation for autogen MCP tool adapter. (#1409)

* Add instrumentation for MCP tool adapter.

* [MegaLinter] Apply linters fixes

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Autogen Agent Instrumentation (#1412)

* Add autogen agent instrumentation.

* Address review feedback.

* [MegaLinter] Apply linters fixes

---------

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

* Add instrumentation for autogen MCP tool adapter. (#1409)

* Add instrumentation for MCP tool adapter.

* [MegaLinter] Apply linters fixes

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Add autogen agent instrumentation.

* Revert "Add autogen agent instrumentation."

This reverts commit a26766a.

* Autogen Agent Instrumentation (#1412)

* Add autogen agent instrumentation.

* Address review feedback.

* [MegaLinter] Apply linters fixes

---------

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

* Save linking metadata on generator proxy.

* Add comments to changes in instrumentation.

* Add LLMAgent events to autogen instrumentation. (#1455)

---------

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

* MCP Streamable HTTP Spans (DO NOT MERGE YET) (#1462)

* Add tool manager span.

* Add tool manager spans to MCP instrumentation to support streaming.

---------

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

* Update MCP instrumentation to check if AIM is enabled. (#1456)

* Update MCP instrumentation to check if AIM is enabled.

* Linting

---------

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

* Add clause to avoid reporting empty content in openai. (#1517)

* Update validator path.

* Add MCP adapter test for no transaction.

* Linting fixups.

* Linting

---------

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

* Switch to Using uv in CI (#1514)

* Switch infra to uv

* Update Dockerfile for uv

* Configure uv with pinned python and shims

* Use uv in pre-commit

* Move uv download manual setting

* Add asv tool for the future

* Benchmarking Infrastructure (#1506)

* Use asv for benchmarking

* Linting

---------

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

* Fix CI Image (#1523)

* Restore all ubuntu packages

* Remove pycurl options

* Reconfigure uv installation process

* Fix for azure_functions_worker venvs

---------

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

* Bump the github_actions group with 2 updates (#1522)

Bumps the github_actions group with 2 updates: [docker/login-action](https://github.com/docker/login-action) and [github/codeql-action](https://github.com/github/codeql-action).


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

Updates `github/codeql-action` from 3.30.3 to 3.30.5
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@192325c...3599b3b)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 3.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github_actions
- dependency-name: github/codeql-action
  dependency-version: 3.30.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github_actions
...

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

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Lalleh Rafeei <[email protected]>
Co-authored-by: Hannah Stepanek <[email protected]>
Co-authored-by: Uma Annamalai <[email protected]>
Co-authored-by: Keagan Peet <[email protected]>

* Disable windows wheels (#1528)

* Separate integration tests from core tests completely by prefix

* Tweak runner counts

* Resort jobs in tests.yml workflow (no functional changes)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lalleh Rafeei <[email protected]>
Co-authored-by: Hannah Stepanek <[email protected]>
Co-authored-by: Uma Annamalai <[email protected]>
Co-authored-by: Keagan Peet <[email protected]>
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