-
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates Sentry.Sources to support multiple source code root paths
Before the changes in this commit Sentry.Sources only looked for source code files in one root path, the `:root_source_code_path`. With the changes in this commit this module will now be able to look for source code in multiple paths. The paths can be configured in the `:root_source_code_paths` config key. This change is specially important for umbrella applications [1], that have their code nested in the `apps` path. If we don't specify the root path for each individual application (which isn't possible without the changes in this commit), and instead just use `File.cwd!()` as the root path, the source code files of each umbrella app will be loaded with `apps/<app name>` prefix in their name. This is a problem because these names will never match the file names in the stacktrace, which means that Sentry won't be able to attach source code context. To avoid a configuration breaking change, the changes in this commit still support the `:root_source_code_path` configuration key, but "soft deprecate" it by removing it from documentation. This config key should be fully deprecated in the next major Sentry release. [1] https://elixir-lang.org/getting-started/mix-otp/dependencies-and-umbrella-projects.html
- Loading branch information
1 parent
b3a92b7
commit c92750d
Showing
5 changed files
with
96 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters