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

Implement defensive programming techniques for setting spans in ContextVars

Open duck-nukem opened this issue 11 months ago • 1 comments
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

duck-nukem avatar Dec 16 '24 11:12 duck-nukem

❌ 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