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

make monitoring independent of requests #127

Merged
merged 1 commit into from Jun 18, 2022
Merged

Conversation

idoqo
Copy link
Collaborator

@idoqo idoqo commented Jun 18, 2022

When monitoring is not enabled in user config, but they try to enable it while creating a new service, we create a new goroutine to set up the monitoring services. Functions in the new goroutine use the request context (which causes issues e.g in the screenshot, as the request has already been responded to and closed).

This fixes that by using a new background context in the goroutine to make it independent of the request.

image

@idoqo idoqo merged commit e3bc7f1 into main Jun 18, 2022
@idoqo idoqo deleted the idoqo/docker-req-cancellation branch June 18, 2022 08:49
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.

None yet

2 participants