newrelic / newrelic-browser-agent

New Relic Browser Agent
Apache License 2.0
77 stars 40 forks source link

feat: Add Logging Configurations #1058

Closed metal-messiah closed 4 months ago

metal-messiah commented 4 months ago

Add default configuration settings to be used for upcoming logging feature

Overview

The init block to control the logging feature

Related Issue(s)

NR-251150

Testing

A generic test has been added to validate that the init block returns the props and default vals that are expected

github-actions[bot] commented 4 months ago

Asset Size Report

Merging this pull request will result in the following asset size changes:

Agent Asset Previous Size New Size Diff
lite loader 31.78 kB / 11.13 kB (gzip) 31.85 kB / 11.14 kB (gzip) 0.22% / 0.08% (gzip)
lite async-chunk 50.97 kB / 16.57 kB (gzip) 50.97 kB / 16.57 kB (gzip) 0% / 0% (gzip)
pro loader 53.05 kB / 17.97 kB (gzip) 53.11 kB / 17.98 kB (gzip) 0.13% / 0.07% (gzip)
pro async-chunk 93.81 kB / 28.31 kB (gzip) 93.81 kB / 28.31 kB (gzip) 0% / 0% (gzip)
spa loader 61.16 kB / 20.48 kB (gzip) 61.23 kB / 20.49 kB (gzip) 0.11% / 0.05% (gzip)
spa async-chunk 109.07 kB / 32.74 kB (gzip) 109.07 kB / 32.74 kB (gzip) 0% / 0% (gzip)
lite-polyfills loader 125.76 kB / 40.42 kB (gzip) 125.83 kB / 40.43 kB (gzip) 0.05% / 0.02% (gzip)
lite-polyfills async-chunk 65.71 kB / 18.91 kB (gzip) 65.71 kB / 18.91 kB (gzip) 0% / 0% (gzip)
pro-polyfills loader 147.47 kB / 46.69 kB (gzip) 147.54 kB / 46.7 kB (gzip) 0.05% / 0.03% (gzip)
pro-polyfills async-chunk 114.33 kB / 30.27 kB (gzip) 114.33 kB / 30.27 kB (gzip) 0% / 0% (gzip)
spa-polyfills loader 155.67 kB / 48.83 kB (gzip) 155.74 kB / 48.85 kB (gzip) 0.04% / 0.03% (gzip)
spa-polyfills async-chunk 131.33 kB / 34.9 kB (gzip) 131.33 kB / 34.9 kB (gzip) 0% / 0% (gzip)
codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 87.54%. Comparing base (face445) to head (e621d61).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1058 +/- ## ======================================= Coverage 87.54% 87.54% ======================================= Files 156 156 Lines 7120 7120 Branches 1398 1398 ======================================= Hits 6233 6233 Misses 772 772 Partials 115 115 ``` | [Flag](https://app.codecov.io/gh/newrelic/newrelic-browser-agent/pull/1058/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=newrelic) | Coverage Δ | | |---|---|---| | [unit-tests](https://app.codecov.io/gh/newrelic/newrelic-browser-agent/pull/1058/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=newrelic) | `76.21% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=newrelic#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.