grafana / faro-web-sdk

The Grafana Faro Web SDK, part of the Grafana Faro project, is a highly configurable web SDK for real user monitoring (RUM) that instruments browser frontend applications to capture observability signals. Frontend telemetry can then be correlated with backend and infrastructure data for full-stack observability.
https://grafana.com/oss/faro/
Apache License 2.0
688 stars 62 forks source link

Default internalLoggerLevel to OFF for Production use cases, and document how to set it for Development #207

Open leveyjam opened 1 year ago

leveyjam commented 1 year ago

Description

By default, the faro-web-sdk will log at level.ERROR. However, the errors appear in the Application users' consoles, so are not useful unless in a development setting.

Proposed solution

internalLoggerLevel could be set to Level.OFF by default, and developer documentation updated to suggest setting it to INFO or ERROR level when initially setting up instrumentation for an application. Users should be instructed to turn the logging off when in a Production setting, unless they wish their users to see error messages caused by background telemetry transmission.

Context

CHE1RON commented 1 month ago

I second that!