-
Notifications
You must be signed in to change notification settings - Fork 46
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
feat: Aggregate log events based on rum flag #1253
Conversation
Asset Size Report
Merging this pull request will result in the following asset size changes:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## auto-logging #1253 +/- ##
===============================================
Coverage ? 89.11%
===============================================
Files ? 169
Lines ? 7371
Branches ? 1478
===============================================
Hits ? 6569
Misses ? 682
Partials ? 120
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Last ran on |
Many tests rely on console.log in order to not fail
Mentioned in standup today (and got ack'd) that the default level was changed after the initial approval. We will re-review again when officially merging feat branch to main, so gonna go ahead and merge now. |
Aggregate logging events according to the
log
flag received from rum call to BCS.Overview
Part 2 of the auto-logging feature work. This work will enable the logging feature to be controlled via BCS, which is ultimately based on user settings from UI (on/off, sampling, log level).
Related Issue(s)
https://new-relic.atlassian.net/browse/NR-323597
Testing
Extended existing logging aggregate unit and e2e tests around handling the flag. Includes tests for each logging mode to ensure log messages of equal or higher levels are collected. For example, if the
log
flag = 3 (INFO), then collectconsole.error
,console.warn
,console.info
, andconsole.log
events.Extended existing tests to ensure no harvests when rum flag = 0 and events are drained.