[ 377 ] Add crash_report
logger metadata for exceptions captured by Cowboy.Handler
#381
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduces #377
This change aims to follow the elixir standard to make usage of
crash_report
metadata as listed here so that users can access these with additional information about the request and connection.One example of usage for this is the platforms for bug reports such as Sentry or Bugsnag. A user can implement its own logger backend and process the log lines that contains crash_report metadata. Notice that we're normalizing the exceptions based on the elixir docs
One extra thing changed here: Use
:proc_lib.start_link
which is a erlang module that also adds crash_report to processes