ErrorTrackerNotifier.StackTraceFormatter (error_tracker_notifier v0.2.2)

View Source

Formats stack traces for different notification channels.

Summary

Functions

Formats a stack trace for Discord notifications with code block syntax. Returns a code block string with the formatted stack trace, or nil if no trace exists.

Formats a stack trace for email notifications with HTML escaping. Returns an HTML string with the formatted stack trace, or an empty string if no trace exists.

Functions

format_for_discord(occurrence)

Formats a stack trace for Discord notifications with code block syntax. Returns a code block string with the formatted stack trace, or nil if no trace exists.

format_for_email(occurrence)

Formats a stack trace for email notifications with HTML escaping. Returns an HTML string with the formatted stack trace, or an empty string if no trace exists.