# Alerting for failed distributed traces

**URL:** <https://community.dynatrace.com/t/alerting-for-failed-distributed-traces/37851>\
**Category:** Alerting\
**Tags:** distributed-traces-classic, problem-detection, problems-classic\
**Created:** [January 3, 2023, 12:04pm UTC](https://community.dynatrace.com/t/alerting-for-failed-distributed-traces/37851 "2023-01-03T12:04:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [January 3, 2023, 12:04pm UTC](https://community.dynatrace.com/t/alerting-for-failed-distributed-traces/37851/1 "2023-01-03T12:04:04Z")

</div>

I need to create an alert for the failed distributed traces for this service as attached below

I’ve specified the failed only and the amount of time it exceeds to be alerted on.

appreciate your support and guidance.

 ![failed distributed traces .png](https://global.discourse-cdn.com/dynatrace/original/2X/4/45735d49cfb12796864ed2ec5d67bb6fea050e2e.png)

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [January 3, 2023, 1:32pm UTC](https://community.dynatrace.com/t/alerting-for-failed-distributed-traces/37851/2 "2023-01-03T13:32:50Z")

</div>

I’ve created it through creating a custom metric then create a custom events for alerting.

It’s very interesting, Thanks.  
If there any extra methods to configure it, please share it with me.

---

<div class="post-metadata">

**Author:** ![agravier](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agravier/32/29303_2.png) [@agravier](https://community.dynatrace.com/u/agravier)\
**Post date:** [January 3, 2023, 9:31pm UTC](https://community.dynatrace.com/t/alerting-for-failed-distributed-traces/37851/3 "2023-01-03T21:31:56Z")

</div>

Hello&nbsp;[@Peter\_Youssef](https://community.dynatrace.com/user/51369)

The best way for me :

1- Create a request naming rule on the service settings to group all your traces on the same request (request naming rules help to adjust how your requests are tracked). example of naming rule for your use case :

 ![AurelienGravier_0-1672779989116.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/6/f61cbb72f25bafd58331287539bdb746a564aa22.png)

2- It takes a while for newly added key requests to show on the top request list, the new request will appear on your service,&nbsp;opening it and mark it as key request.&nbsp;It will help to apply different thresholds for this specific request.

3- Go on the services settings on the menu, anomaly detection and you will be able to specify a custom threshold for this key request to detect anomalies on error rate for example :

 ![AurelienGravier_1-1672780828959.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/f/ff28e6692f164a1b395cf55d56466aa446259b40.png)

For example, this configuration will generate a problem when the error rate on the request “/b2b/trnprocessor/identifiers/no-id/sales-ext” will exceed 5% :

 ![AurelienGravier_2-1672781000478.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/b/5b737cfacafe9a172c9a2366c6a15d1e85743023.png)

Regards Aurelien.

---

<div class="post-metadata">

**Author:** ![agravier](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agravier/32/29303_2.png) [@agravier](https://community.dynatrace.com/u/agravier)\
**Post date:** [January 6, 2023, 10:14am UTC](https://community.dynatrace.com/t/alerting-for-failed-distributed-traces/37851/4 "2023-01-06T10:14:42Z")

</div>

hello, [@Peter\_Youssef](https://community.dynatrace.com/user/51369)

Did you try the solution ?

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [January 6, 2023, 1:48pm UTC](https://community.dynatrace.com/t/alerting-for-failed-distributed-traces/37851/5 "2023-01-06T13:48:26Z")

</div>

Tested ,Thanks for guidance&nbsp;[@AurelienGravier](https://community.dynatrace.com/user/44995)

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [January 6, 2023, 4:39pm UTC](https://community.dynatrace.com/t/alerting-for-failed-distributed-traces/37851/6 "2023-01-06T16:39:08Z")

</div>

after these steps, I’ve created problem alerting profile and it works perfectly now.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [September 17, 2024, 6:15am UTC](https://community.dynatrace.com/t/alerting-for-failed-distributed-traces/37851/7 "2024-09-17T06:15:40Z")

</div>

Thanks&nbsp;[@AurelienGravier](https://community.dynatrace.com/user/44995), It worked fine.
