newrelic-python-agent
newrelic-python-agent copied to clipboard
Add support for Sanic.TouchUp metaclass
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
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