View Source mix sentry.package_source_code (Sentry v10.0.0)
Packages source code for Sentry to use when reporting errors.
This task should be used in production settings, before building a release of your
application. It packages all the source code of your application in a single file
(called sentry.map
), which is optimized for fast retrieval of source code lines.
Sentry then uses this to report source code context. See the documentation for the
Sentry
module for configuration options related to the source code context.
This task is available since v10.0.0 of this library.
usage
Usage
mix sentry.package_source_code
using-in-production
Using in Production
In production settings, call this task before building a release. This way, the source code packaged by this task will be included in the release.
For example, in a release script (this could also be in a Dockerfile
, if you're using
Docker):
# ...
mix sentry.package_source_code
mix release
options
Options
--debug
- print more information about collecting and encoding source code