Skip to content

Commit

Permalink
Add sampling for health requests (#4123)
Browse files Browse the repository at this point in the history
  • Loading branch information
adusumillipraveen authored Nov 8, 2024
1 parent e558837 commit fd13f94
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/applicationinsights.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,20 @@
"connectionString": "${file:/mnt/secrets/sscs/app-insights-connection-string}",
"role": {
"name": "TribunalsCaseApi"
},
"sampling": {
"overrides": [
{
"telemetryType": "request",
"attributes": [
{
"key": "http.url",
"value": "https?://[^/]+/health.*",
"matchType": "regexp"
}
],
"percentage": 1
}
]
}
}

0 comments on commit fd13f94

Please sign in to comment.