newrelic-python-agent icon indicating copy to clipboard operation
newrelic-python-agent copied to clipboard

Add support for Sanic.TouchUp metaclass

Open hmstepanek opened this issue 3 years ago • 1 comments

Overview

Starting in Sanic version 21.9.0, Sanic added a TouchUp metaclass that rewrites methods on the Sanic class effectively undoing our instrumentation wrapping on startup of the server. This adds back our instrumentation wrapping after it is undone by wrapping the TouchUp metaclass.

Related Github Issue

This fixes To support instrumentation on Sanic 21.9 / 21.12

hmstepanek avatar Aug 16 '22 22:08 hmstepanek

MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON bandit 2 0 0.72s
✅ PYTHON black 4 2 0 0.97s
❌ PYTHON flake8 4 2 0.6s
✅ PYTHON isort 4 2 0 0.2s
❌ PYTHON pylint 4 66 8.23s

See errors details in artifact MegaLinter reports on CI Job page Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

github-actions[bot] avatar Aug 16 '22 22:08 github-actions[bot]