-
Notifications
You must be signed in to change notification settings - Fork 341
chore(tracing): remove async storage from mongo plugins #5812
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
Draft
wconti27
wants to merge
20
commits into
master
Choose a base branch
from
conti/remove-async-storage-mongo
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 9 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4cbbf86
remove async storage from mongo plugins
wconti27 fcc2b18
change mongoose to use asynstorage
wconti27 455e222
try something
wconti27 b1765ac
Merge branch 'master' into conti/remove-async-storage-mongo
wconti27 8c31b8f
Merge branch 'master' into conti/remove-async-storage-mongo
wconti27 7dd69ec
a few more fixes
wconti27 41205a0
Merge branch 'master' into conti/remove-async-storage-mongo
wconti27 6e560df
revert mongoose
wconti27 f1fb66c
Merge branch 'master' into conti/remove-async-storage-mongo
wconti27 fdcfcaf
Merge branch 'master' into conti/remove-async-storage-mongo
wconti27 680d0e1
fix mongoose
wconti27 197c746
keep mongodb wrap queue function using async resource
wconti27 e8245f5
fix lint
wconti27 5de74fd
better naming
wconti27 62f323c
Merge branch 'master' into conti/remove-async-storage-mongo
wconti27 7c26380
Merge branch 'master' into conti/remove-async-storage-mongo
wconti27 0a871c4
fix reviewer comment
wconti27 b0bbf3b
don't use store in instrumentation code
wconti27 6bb8d53
fix lint
wconti27 aade700
fix lint error
wconti27 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems weird that this hook was removed but not replaced with anything. Do you know why it is no longer needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have been following a pattern for these changes. Since we don't call channel.publish here, AFAIK we do not need this wrapper hook anymore since it only deals with binding the asyncresource to the callback. Going to refer to @rochdev since honestly im not sure why this was ever needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is technically still needed as it basically patches non-native promise implementations that can be used by
mongodb
. Since we're also instrumenting the library and not just a generic promise implementation it could be replaced with a channel, but I think it's safe to just leave it here as-is for now as it's not nesting async resources.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, ive reverted the change and kept the function here.