From 1f4d9c1fbe952305ba4ba4874a9b56904ed9638e Mon Sep 17 00:00:00 2001 From: Praveen Adusumilli <47391951+adusumillipraveen@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:53:29 +0000 Subject: [PATCH] Add sampling for health requests (#1526) --- lib/applicationinsights.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/applicationinsights.json b/lib/applicationinsights.json index 61fe0b2aa..6a1a3128f 100644 --- a/lib/applicationinsights.json +++ b/lib/applicationinsights.json @@ -2,5 +2,20 @@ "connectionString": "${file:/mnt/secrets/sscs-bulk-scan/app-insights-connection-string}", "role": { "name": "SscsBulkScan" + }, + "sampling": { + "overrides": [ + { + "telemetryType": "request", + "attributes": [ + { + "key": "http.url", + "value": "https?://[^/]+/health.*", + "matchType": "regexp" + } + ], + "percentage": 1 + } + ] } }