You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(telemetry): prepend the error code/name to the reasonDesc field (#5557)
## Problem:
In telemetry we sometimes add the error message to the `reasonDesc`
field.
Additionally when using `getTelemetryReasonDesc()` it will recurse
through the causal
chain of the error and return a value composed of all the error
messages.
Eg: `Reason A | Reason B | Reason C`
The issue is that the nested errors may have useful context (in addition
to the message) in their
id (code or name). And currently this is lost.
## Solution:
Prepend the code/name to the error messages when using
`getTelemetryReasonDesc()`
Eg: `CodeA: Reason A | CodeB: Reason B | NameC: Reason C`
---
<!--- REMINDER: Ensure that your PR meets the guidelines in
CONTRIBUTING.md -->
License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
---------
Signed-off-by: Nikolas Komonen <[email protected]>
0 commit comments