Hi,
I’m integrating Dynatrace with Azure App Service and works ok except when I have multiple service slots.
I have an app MyApp and each slot have different application ids and consequently are being shown as different services:
- MyApp
- myapp__b123
I’m using service detection rules to improve detection and I’m able to remove the suffix:
<span>"applicationId"</span><span>:</span> <span>{</span>
<span>"enableIdContributor"</span><span>:</span> <span>true</span><span>,</span>
<span>"serviceIdContributor"</span><span>:</span> <span>{</span>
<span>"contributionType"</span><span>:</span> <span>"TransformValue"</span><span>,</span>
<span>"transformations"</span><span>:</span> <span>[</span>
<span>{</span>
<span>"transformationType"</span><span>:</span> <span>"SPLIT_SELECT"</span><span>,</span>
<span>"splitDelimiter"</span><span>:</span> <span>"__"</span><span>,</span>
<span>"selectIndex"</span><span>:</span> <span>1</span>
<span>}</span>
<span>]</span>
<span>}</span>
<span>}</span><span>,</span>
But I’m still struggling with the casing. I wish I could use a case insensitive rule or at least override the ApplicationId with a environment variable.
I tried using DT_APPLICATIONID but apparently it only works when the service does not have an existing application id.