Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement defensive programming techniques for setting spans in ContextVars #2179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

duck-nukem
Copy link

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

…xtVars

to avoid accidentally trying to merge a None with a tuple of Spans

Related to elastic#2056
Copy link

❌ Author of the following commits did not sign a Contributor Agreement:
47a0f5d

Please, read and sign the above mentioned agreement if you want to contribute to this project

@github-actions github-actions bot added agent-python community Issues opened by the community triage Issues awaiting triage labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-python community Issues opened by the community triage Issues awaiting triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError in elasticapm.context.contextvars
1 participant