Skip to content

Commit

Permalink
chore(azure): Replace traces.message with customDimensions.MessageTem…
Browse files Browse the repository at this point in the history
…plate in slackNotifier (#1437)

Replace traces.message with customDimensions.MessageTemplate in the
slackNotifier for improved grouping
  • Loading branch information
knuhau authored Nov 11, 2024
1 parent fec472b commit a7a2c74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .azure/modules/functionApp/slackNotifier.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ var query = '''
Environment = tostring(customDimensions.AspNetCoreEnvironment),
Type = itemType,
problemId,
message,
tostring(customDimensions.MessageTemplate),
severityLevel
| extend SeverityLevel = case(
severityLevel == 0, "Verbose",
Expand All @@ -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
'''
Expand Down

0 comments on commit a7a2c74

Please sign in to comment.