-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Use new shared session for Session Trace feature - NEWRELIC-8662 (
#545) Co-authored-by: Patrick Housley <[email protected]> Co-authored-by: Jordan Porter <[email protected]>
- Loading branch information
1 parent
9c2f93d
commit dbd995a
Showing
32 changed files
with
479 additions
and
454 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* @file Keeps an object alive that is passed to all feature aggregate modules. | ||
* The purpose is to have a way for communication and signals to relay across features at runtime. | ||
* This object can hold any arbitrary values and should be treated as on-the-fly dynamic. | ||
*/ | ||
|
||
let onReplayReady | ||
const sessionReplayInitialized = new Promise(resolve => onReplayReady = resolve) | ||
|
||
export const sharedChannel = Object.freeze({ | ||
onReplayReady, | ||
sessionReplayInitialized | ||
}) |
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
Oops, something went wrong.