Use example - Tubitv/logger_sentry GitHub Wiki
use exception option
Logger.error("some error", exception: Exception)
use stacktrace option
Logger.error("some error", stacktrace: System.stacktrace())
use fingerprint for aggregation
Logger.error("some error", fingerprint: ["error_category_1", "error_category_2"])
use extra for error parameters
Logger.error("some error", extra: %{params: %{}, level: "", error: "detailed_error_information"})