diff --git a/public/app/features/alerting/unified/Analytics.ts b/public/app/features/alerting/unified/Analytics.ts index 51c150d968b..3efae8cf1e8 100644 --- a/public/app/features/alerting/unified/Analytics.ts +++ b/public/app/features/alerting/unified/Analytics.ts @@ -17,7 +17,7 @@ export const LogMessages = { }; // logInfo from '@grafana/runtime' should be used, but it doesn't handle Grafana JS Agent and Sentry correctly -export function logInfo(message: string, context: Record = {}) { +export function logInfo(message: string, context: Record = {}) { if (config.grafanaJavascriptAgent.enabled) { faro.api.pushLog([message], { level: GrafanaLogLevel.INFO, diff --git a/public/app/features/alerting/unified/state/actions.ts b/public/app/features/alerting/unified/state/actions.ts index 979307bed6a..873fb9f8e0c 100644 --- a/public/app/features/alerting/unified/state/actions.ts +++ b/public/app/features/alerting/unified/state/actions.ts @@ -484,7 +484,7 @@ export const saveRuleFormAction = createAsyncThunk( throw new Error('Unexpected rule form type'); } - logInfo(LogMessages.successSavingAlertRule); + logInfo(LogMessages.successSavingAlertRule, { type, isNew: !existing }); if (!existing) { trackNewAlerRuleFormSaved({