-
Notifications
You must be signed in to change notification settings - Fork 142
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
✨ [RUMF-771] Add getLoggerGlobalContext and getRumGlobalContext #614
Conversation
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.
👍 for docs
0164d6f
to
6d4812f
Compare
Codecov Report
@@ Coverage Diff @@
## master #614 +/- ##
==========================================
- Coverage 89.09% 88.85% -0.24%
==========================================
Files 54 54
Lines 2503 2503
Branches 541 541
==========================================
- Hits 2230 2224 -6
- Misses 273 279 +6
Continue to review full report at Codecov.
|
@@ -29,7 +29,7 @@ export function startLoggerSession(configuration: Configuration, areCookieAuthor | |||
} | |||
} | |||
|
|||
function computeTrackingType(configuration: Configuration): string { | |||
function computeTrackingType(configuration: Configuration): LoggerTrackingType { |
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.
function computeTrackingType(configuration: Configuration): LoggerTrackingType { | |
function computeTrackingType(configuration: Configuration) { |
the compiler should figure it out, explicit typing does not seem necessary here
Motivation
Simply debugging by providing getters for global contexts.
Changes
getLoggerGlobalContext
andgetRumGlobalContext
Testing
No new tests were added since the contextManager methods are already tested and those getters are just aliases of
contextManager.get
.I have gone over the contributing documentation.