Hey everyone! I know there are various ways to notify teams when issues pop up in production using tools like Datadog, Opsgenie, Splunk, Alertmanager, and more. I noticed these tools can also send alerts via platforms like Slack, Teams, Discord, PagerDuty, and email. I'm curious if anyone has managed to include stack trace data with those alerts? Have developers asked for stack trace information while investigating alerts? If so, how would you go about implementing this?
1 Answer
Slack, Teams, and Discord aren't originally designed as debugging platforms. Most engineers prefer using tools like Datadog or Sentry for debugging. Typically, it's better to send an alert with a clear error message and a link to the related issue in your bug tracker. That said, it is definitely feasible to programmatically send messages to Slack or Teams, including stack traces, though not every bug tracker supports that feature out of the box.
Thanks for the info! I've been trying to figure out how to include stack trace data because it really helps locate the source of the issue.