From 1dcbd2411c28913b447129097d80730b06eb406d Mon Sep 17 00:00:00 2001 From: Bryant Bourgeois Date: Wed, 24 Jul 2024 13:29:41 -0600 Subject: [PATCH] Add info for missing error message and stack trace (#24297) * Add info for missing error message and stack trace * Update content/en/tracing/troubleshooting/_index.md Co-authored-by: Ursula Chen <58821586+urseberry@users.noreply.github.com> * Add link target --------- Co-authored-by: Ursula Chen <58821586+urseberry@users.noreply.github.com> --- content/en/tracing/troubleshooting/_index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/en/tracing/troubleshooting/_index.md b/content/en/tracing/troubleshooting/_index.md index df9fbfef87ff2..a41df0c1b4c2b 100644 --- a/content/en/tracing/troubleshooting/_index.md +++ b/content/en/tracing/troubleshooting/_index.md @@ -108,6 +108,16 @@ Including metric partitions or grouping variables in service names instead of ap For example, instead of the service `web-store`, you might decide to name different instances of a service `web-store-us-1`, `web-store-eu-1`, and `web-store-eu-2` to see performance metrics for these partitions side-by-side. Datadog recommends implementing the **region value** (`us-1`, `eu-1`, `eu-2`) as a second primary tag. +### Missing error message and stack trace + +In some traces with an error status, the **Errors** tab shows `Missing error message and stack trace` rather than exception details. + +A span can show this message for two possible reasons: +- The span contains an unhandled exception. +- An HTTP response within the span returned an HTTP status code between 400 and 599. + +When an exception is handled in a try/catch block, `error.msg`, `error.type`, and `error.stack` span tags are not populated. To populate the detailed error span tags, use [Custom Instrumentation][18] code. + ## Troubleshooting data requested by Datadog Support When you open a [support ticket][1], our support team may ask for some combination of the following types of information: @@ -174,3 +184,4 @@ kubectl exec -it -c trace-agent -- agent flare --loca [15]: /tracing/compatibility_requirements/ [16]: /tracing/guide/setting_primary_tags_to_scope/?tab=helm#add-a-second-primary-tag-in-datadog [17]: /tracing/guide/setting_primary_tags_to_scope/ +[18]: /tracing/trace_collection/custom_instrumentation/?tab=datadogapi