From a7a2c747181a92f72effd3afb9ffa275cc487ea0 Mon Sep 17 00:00:00 2001 From: Knut Haug <154342485+knuhau@users.noreply.github.com> Date: Mon, 11 Nov 2024 10:58:59 +0100 Subject: [PATCH] chore(azure): Replace traces.message with customDimensions.MessageTemplate in slackNotifier (#1437) Replace traces.message with customDimensions.MessageTemplate in the slackNotifier for improved grouping --- .azure/modules/functionApp/slackNotifier.bicep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure/modules/functionApp/slackNotifier.bicep b/.azure/modules/functionApp/slackNotifier.bicep index ec5b24d46..8c5aee77e 100644 --- a/.azure/modules/functionApp/slackNotifier.bicep +++ b/.azure/modules/functionApp/slackNotifier.bicep @@ -168,7 +168,7 @@ var query = ''' Environment = tostring(customDimensions.AspNetCoreEnvironment), Type = itemType, problemId, - message, + tostring(customDimensions.MessageTemplate), severityLevel | extend SeverityLevel = case( severityLevel == 0, "Verbose", @@ -178,7 +178,7 @@ var query = ''' severityLevel == 4, "Critical", tostring(severityLevel) ) - | extend Details = coalesce(message, problemId) + | extend Details = coalesce(customDimensions_MessageTemplate, problemId) | extend Details = replace_string(Details, "Digdir.Domain.Dialogporten.", "") | project Environment, Type, SeverityLevel, Count, Details '''