Closed github-actions[bot] closed 3 days ago
Benchmark execution time: 2024-11-18 21:09:53
Comparing candidate commit 880ddb37791bd4a055777e2f06f1c948419a7365 in PR branch backport-11381-to-2.17
with baseline commit 7ec870177320cb2a6fcb40196ad91373d18ce3fe in branch 2.17
.
Found 0 performance improvements and 0 performance regressions! Performance is the same for 388 metrics, 2 unstable metrics.
CODEOWNERS
have been resolved as:
.github/workflows/test_lib_injection.yml @DataDog/python-guild @DataDog/apm-core-python
releasenotes/notes/fix-lib-injection-version-support-ae2ff3a79ac1f6f2.yaml @DataDog/apm-python
lib-injection/sources/sitecustomize.py @DataDog/apm-core-python
Backport 739a8c7742b778117605935617cdaf80cc662cdd from #11381 to 2.17.
We must insure that the lib-injection works properly with older versions of Python. Even ones that we don't support with our library. This is because SSI will inject into any
python
process.The oldest conceivable version in the wild is likely 2.6, although since it relies on OpenSSL 1.0, I hope most people have at least moved on to 2.7.
The current implementation of the loader had syntax errors that would raise when trying to execute the script. With
sitecustomize.py
we will not crash the application due to an error because Python try/excepts it, but it does mean the script won't load / we won't get telemetry data.Majority of the changes are to remove f-strings and type hinting. I added a few extra guards and an additional telemetry generation around the main
try: _inject() except:
block.Checklist
Reviewer Checklist