27 Sep 2023 11:53 AM - last edited on 28 Sep 2023 07:51 AM by MaciejNeumann
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:
"applicationId": { "enableIdContributor": true, "serviceIdContributor": { "contributionType": "TransformValue", "transformations": [ { "transformationType": "SPLIT_SELECT", "splitDelimiter": "__", "selectIndex": 1 } ] } },
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.
Solved! Go to Solution.
14 Feb 2024 12:47 PM
Hey @rafaelmiranda
Are you still facing this issue, or have you found a solution already?
Let me know so we can discuss the next steps 🙂
01 Nov 2024 05:25 PM
Did you figure out a solution?
13 Nov 2024 11:06 AM
Hello @rafaelmiranda
Hoping it helps.
BR,
Peter
18 Nov 2024 04:26 PM
I found that I was able to combine the two services (one for my production slot and one for my "vNext" slot) into one service that includes the traces, metrics for both slots.
I did this by creating a web service detection rule that overrides the service name to be my service name (in your example "myapp").
Then I created an Advanced Process Detection rule which does something similar by truncating the name of the process (using the "Delimit To" option). That was sufficient for getting the services to be combined.
For bonus points then, I set a "DT_RELEASE_STAGE" environment variable to "Prod" for the prod slot and "VNEXT" for my vnext slot. I made those settings sticky so that they stick to the slot and don't get swapped when the slots are swapped.
This gives you the ability to break out the data in the Dynatrace UI between the slots (even though they are combined into one service).