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

Ensure dependencies are not tracked if disabled after initialization #946

Merged
merged 4 commits into from
Apr 26, 2022

Conversation

hectorhdzg
Copy link
Member

Related to #930

@hectorhdzg hectorhdzg merged commit 831807d into develop Apr 26, 2022
CorrelationContextManager.wrapEmitter(request);
if (this._isEnabled) {
// Mark as auto collected
(<any>request)[AutoCollectHttpDependencies.alreadyAutoCollectedFlag] = true;
Copy link

Choose a reason for hiding this comment

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

It was really just this line I was thinking about wrapping -- but that could cause repetitive requests. So this works too.

@hectorhdzg hectorhdzg deleted the hectorhdzg/disableautodep branch January 12, 2023 17:53
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