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

refactor: Using context manager to handle threading.Lock #475

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

pvital
Copy link
Member

@pvital pvital commented Nov 28, 2023

This PR solves the issue of the background report thread not releasing the lock when the application is manually instrumented and runs with multiple workers (uWSGI).

@pvital pvital added the wip work in progress label Nov 28, 2023
instana/collector/base.py Outdated Show resolved Hide resolved
instana/collector/base.py Outdated Show resolved Hide resolved
Signed-off-by: Paulo Vital <paulo.vital@ibm.com>
@pvital pvital marked this pull request as ready for review November 29, 2023 15:20
@pvital pvital requested review from Ferenc- and GSVarsha November 29, 2023 15:20
@pvital pvital self-assigned this Nov 29, 2023
@pvital pvital removed the wip work in progress label Nov 29, 2023
Copy link
Collaborator

@Ferenc- Ferenc- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@GSVarsha GSVarsha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@pvital pvital merged commit 6808046 into master Nov 30, 2023
12 checks passed
@pvital pvital deleted the lock_ctx_mnger branch November 30, 2023 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants