Faro: Update configuration with best practices (#112108)
* Clean up faro configuration to align with best practices * Update grafana docs * remove fixme comment * fix tests * don't spread config in
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import type { InternalLoggerLevel } from '@grafana/faro-core';
|
||||
|
||||
import { SystemDateFormatSettings } from '../datetime/formats';
|
||||
import { MapLayerOptions } from '../geo/layer';
|
||||
|
||||
@@ -93,11 +95,14 @@ export interface LicenseInfo {
|
||||
export interface GrafanaJavascriptAgentConfig {
|
||||
enabled: boolean;
|
||||
customEndpoint: string;
|
||||
errorInstrumentalizationEnabled: boolean;
|
||||
consoleInstrumentalizationEnabled: boolean;
|
||||
webVitalsInstrumentalizationEnabled: boolean;
|
||||
tracingInstrumentalizationEnabled: boolean;
|
||||
apiKey: string;
|
||||
internalLoggerLevel: InternalLoggerLevel;
|
||||
|
||||
consoleInstrumentalizationEnabled: boolean;
|
||||
performanceInstrumentalizationEnabled: boolean;
|
||||
cspInstrumentalizationEnabled: boolean;
|
||||
tracingInstrumentalizationEnabled: boolean;
|
||||
webVitalsAttribution: boolean;
|
||||
}
|
||||
|
||||
export interface UnifiedAlertingStateHistoryConfig {
|
||||
|
||||
@@ -153,13 +153,14 @@ export class GrafanaBootConfig {
|
||||
dateFormats?: SystemDateFormatSettings;
|
||||
grafanaJavascriptAgent = {
|
||||
enabled: false,
|
||||
customEndpoint: '',
|
||||
apiKey: '',
|
||||
allInstrumentationsEnabled: false,
|
||||
errorInstrumentalizationEnabled: true,
|
||||
customEndpoint: '',
|
||||
consoleInstrumentalizationEnabled: false,
|
||||
webVitalsInstrumentalizationEnabled: false,
|
||||
performanceInstrumentalizationEnabled: false,
|
||||
cspInstrumentalizationEnabled: false,
|
||||
tracingInstrumentalizationEnabled: false,
|
||||
webVitalsAttribution: false,
|
||||
internalLoggerLevel: 0,
|
||||
};
|
||||
pluginCatalogURL = 'https://grafana.com/grafana/plugins/';
|
||||
pluginAdminEnabled = true;
|
||||
|
||||
Reference in New Issue
Block a user