newrelic-python-agent
newrelic-python-agent copied to clipboard
Fix Flask view support in Code Level Metrics
Co-authored-by: Lalleh Rafeei [email protected] Co-authored-by: Hannah Stepanek [email protected] Co-authored-by: Uma Annamalai [email protected]
Overview
- Flask class-based and method-based views currently report the class name as the
code.functionsource, causing Code Level Metrics to not work with them. This PR fixes that.
🦙 MegaLinter status: ✅ SUCCESS
| Descriptor | Linter | Files | Fixed | Errors | Elapsed time |
|---|---|---|---|---|---|
| ✅ PYTHON | bandit | 1 | 0 | 3.25s | |
| ✅ PYTHON | black | 3 | 0 | 0 | 0.74s |
| ✅ PYTHON | flake8 | 3 | 0 | 0.48s | |
| ✅ PYTHON | isort | 3 | 0 | 0 | 0.2s |
| ✅ PYTHON | pylint | 3 | 0 | 4.07s |
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