apm-agent-python
apm-agent-python copied to clipboard
Implement defensive programming techniques for setting spans in ContextVars
trafficstars
to avoid accidentally trying to merge a None with a tuple of Spans
What does this pull request do?
Simply adds a safe fallback in case the existing tuple of spans is None
Unfortunately I wasn't able to find the root cause of it, so I only treated the symptoms
Related issues
Closes #2056
❌ Author of the following commits did not sign a Contributor Agreement: 47a0f5d03bbd66d4ff945dc7deebbb20f53b5721
Please, read and sign the above mentioned agreement if you want to contribute to this project