mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Add info to alert rule creation metric (#61105)
Add extra info to alert rule creation metrics
This commit is contained in:
parent
115218b1ff
commit
7604360622
@ -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<string, string | number> = {}) {
|
||||
export function logInfo(message: string, context: Record<string, string | number | boolean> = {}) {
|
||||
if (config.grafanaJavascriptAgent.enabled) {
|
||||
faro.api.pushLog([message], {
|
||||
level: GrafanaLogLevel.INFO,
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user