-
Notifications
You must be signed in to change notification settings - Fork 229
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
new "run context" management to fix numerous span hierarchy issues #2181
Merged
Merged
Changes from all commits
Commits
Show all changes
97 commits
Select commit
Hold shift + click to select a range
e2586e6
feat: new "run context" management to fix numerous span hierarchy issues
trentm b513be3
one half of a possible solution to avoid tracing if APM intake requests
trentm 4df2746
missing part of the previous change to avoid instrumentation APM inta…
trentm e777572
fix so that an ended span is never used as a parent
trentm 334d7ef
changes to S3 instrumentation so that its parent/child relationship w…
trentm f2367c0
Revert "missing part of the previous change to avoid instrumentation …
trentm f46fe0b
Revert "one half of a possible solution to avoid tracing if APM intak…
trentm 17c0744
basic test/run-context structure and first test
trentm 5e65b37
more run-context.test.js cases; starting to clear out obsoleted APIs
trentm c120b44
add test fixtures forgotten in previous commit
trentm 7bf19d4
Merge branch 'master' into trentm/run-ctx-mgr
trentm 2507f00
current state of ctxmgr work
trentm bceeacd
handling subtleties with how span.end() impacts the run context
trentm 3a6dc8d
working through tests, XXXs
trentm 4d2394a
Merge branch 'master' into trentm/run-ctx-mgr
trentm ea21754
breakdown.test.js passing
trentm a2795b7
setImmediates here were a race that failed reliably on node v10
trentm 65fbd05
disable this attempt at help in using _mock_http_client, which just t…
trentm acc0af3
fix s3 instr: bind -> bindFunction recently
trentm 0ed0e36
fix 'make check'
trentm 5955326
tests: refactoring away lib/instrumentation/-specific mocks, from htt…
trentm 67e6d85
Fix pg instrumentation for new run context manager.
trentm 3da6e32
Merge branch 'master' into trentm/run-ctx-mgr
trentm 5dadd73
fix hang in tedious.test.js due to tedious instr relying on _recoverT…
trentm ce9ada1
bless use of Instrumentation#testReset() alternative to 'currentTrans…
trentm 423c62c
fix hang in mysql.test.js due to mysql instr relying on _recoverTrans…
trentm c3880f2
fix memcached tracing: it is now Instrumentation#currSpan(), also fix…
trentm 1a295df
fix http2.test.js by updating the http2 pushStream instrumentation to…
trentm 24a2fda
fix sqs.test.js, necessary guard because of the Metrics init/guard tw…
trentm 60d65e4
bow down before standard
trentm 73888de
workaround a bug in node v12.0.0-v12.2.0 (inclusive) that could resul…
trentm aab5dbb
all hail standard
trentm 8a51c1d
refactor: remove unnecessary namespacing of some of these tests
trentm 9a3aa00
tests: a shot in the dark that this flush is causing the CI breakdown…
trentm 8525fdb
fix Instrumentation#stop to actually disable the RunContextManager
trentm b868e1a
tests: add logging to test a theory with the breaking breakdown.test.…
trentm b5a1b62
necessary guards now that Instrumentation#stop (called by agent.destr…
trentm aeffed1
drop the 'test.only' to see if I can get the CI breakdown.test.js run…
trentm 5d277b4
tests: breakdown.test.js wait improvements to be less susceptible to …
trentm f6c60aa
tests: fix transaction.test.js by clearing the CapturingTransport at …
trentm 8f9d334
fix breakdown.test.js for asyncHooks=false
trentm f6c3e47
clarify this comment
trentm 023f074
drop Instrumentation#_recoverTransaction
trentm c1e028d
Merge branch 'master' into trentm/run-ctx-mgr
trentm e42f5ee
reduce unnecessary diff size
trentm 71616cd
fix breakage in [email protected] instrumentation
trentm d1993fd
thanks much, standard
trentm 35b5584
change Instrumentation#currTx() to Instrumentation#currTransaction() …
trentm dec0707
tests: change (most) test usage of old ins.currentTransaction to ins.…
trentm 80b5fee
drop some XXX plans
trentm 81fd4ff
drop unneeded change to this file to reduce diff size
trentm 40d9095
restore agent._transport guard in captureError() b/c it is needed if …
trentm 169a53d
no point in these log.debugs; frankly it is fine if the 'currentTrans…
trentm b8f7714
clean out debug prints and aspiration statements
trentm 8e53ba4
nicer comment for this change
trentm a241b98
drop unneeded dev comments
trentm c1c832f
Merge branch 'master' into trentm/run-ctx-mgr
trentm 406dddf
improve and clean up run context binding for s3 instrumentation
trentm 309b859
attempting to deal with run context due to startSpan in s3 and outgoi…
trentm 509ddb1
more clear run context binding for the s3 client method callback + re…
trentm 4388612
start additions to Instrumentation API to not have to reach into ins.…
trentm 60d7799
refactor ins.ids property to ins.ids(); no need for property getters …
trentm b822cf8
refactor: api name changes to avoid re-using the same fn name on diff…
trentm 22dcb72
refactor: restore setSpanOutcome impl on Instrumentation, can be chan…
trentm c627fdd
move examples/ to test cases where appropriate; a couple fixes
trentm f888963
async-hooks is no longer used, drop it
trentm 37c72da
drop ins.currentTransaction and ins.currentSpan usage; reduce interna…
trentm c86813b
increase timeout for CI
trentm 0c9bdf2
extracting notes for follow-up work separate from this PR
trentm 4a7739f
drop obsolete activeSpan and bindingSpan
trentm 1036a17
clear out review notes and later todos for pg.js
trentm 4ce8bc3
more clearing out review notes
trentm 4540ed3
working through older XXX notes-to-self
trentm de85763
skip this test for node v8 and patch-async, isn't worth fretting
trentm 91efede
Merge branch 'master' into trentm/run-ctx-mgr
trentm 2d1592e
try replaceActive impl as exitContext;enterContext
trentm 0bfbcf3
refactor: s/replaceActive/replaceRunContext/
trentm f9b8b84
Theoretically better toString for run ctx managers
trentm 60db653
some refactoring, XXX-count=25
trentm 9e02f21
Merge branch 'master' into trentm/run-ctx-mgr
trentm fd13252
doc RunContext; some refactoring
trentm 52fa57d
this new test dir was not actually being run :facepalm:
trentm 3ef9e54
fixing this to work: node 8 had no assert.strict, span.sync with prom…
trentm f0e5ff4
refactoring method names to try to be more self-explanatory; some met…
trentm 0893d28
refactor: AbstractRunContextManager
trentm dbdaf72
refactor: run-context under instrumentation, which is meant to comple…
trentm 1ef673f
refactor: break up BasicRunContextManager.js
trentm 8f5490b
adding notices
trentm 107d189
documenting some added functions
trentm 14e8b9c
update dev note; re-instate x bit for these examples
trentm 5cafbc8
drop obsolete trans.sync tracking
trentm 6b05f53
tweaks to doc comments
trentm 28ea097
improve some comments/test code for review
trentm b3cd5c2
doc/style tweaks
trentm d82e35f
Merge branch 'master' into trentm/run-ctx-mgr
trentm 2406627
Merge branch 'master' into trentm/run-ctx-mgr
trentm 7972658
changelog addition
trentm 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 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 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 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 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 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 was deleted.
Oops, something went wrong.
This file contains 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.
REVIEW NOTE: See separate, long review note about
_recoverTransaction
being dropped.