patterninc / datadog_notifier

MIT License
1 stars 1 forks source link

[BugFix] Convert string to exception class #2

Closed amoludage closed 9 months ago

amoludage commented 9 months ago

When we pass exception as string to the notify method, then datadog does not collect it error to show in Error tracking dashboard.

Datadog expects exception as Exception class, where it can fetch message and backtrace from that exception and show the same in Error tracking dashboard.

Reference - https://github.com/DataDog/dd-trace-rb/blob/9add3ebb5ed9d055682a5d1ce6772949c74f05a7/lib/datadog/tracing/metadata/errors.rb#L14