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

added mutex guards around appRun for code level metrics #958

Merged
merged 5 commits into from
Sep 5, 2024

Conversation

nr-swilloughby
Copy link
Contributor

Corrects access to the internal app.app.run structure by protecting that access with a mutex, in order to prevent race conditions.

@iamemilio
Copy link
Contributor

iamemilio commented Sep 5, 2024

LGTM. Can we drop the go.mod changes from this pr though? That is handled in #948.

We're in a tricky spot because a lot is build on the app object, but we can also just access its elements at any time because its internal. I wish there was a good way to abstract it away a bit more, otherwise this may happen again.

v3/go.mod Outdated Show resolved Hide resolved
iamemilio
iamemilio previously approved these changes Sep 5, 2024
@nr-swilloughby
Copy link
Contributor Author

Apparently my dev setup really wanted the go.mod to be sorted differently. It should be back to what's on the dev branch now.

@nr-swilloughby nr-swilloughby merged commit 2c21c19 into newrelic:develop Sep 5, 2024
54 checks passed
@nr-swilloughby nr-swilloughby deleted the ar_race branch September 5, 2024 16: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.

2 participants