Skip to content

Commit c9b67ae

Browse files
Merge pull request #287 from getsentry/source-code-docs
Add information around source code configuration and compilation
2 parents 7c996fd + a4388f4 commit c9b67ae

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/sentry/sources.ex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ defmodule Sentry.Sources do
4747
[sentry_recompile: ["deps.compile sentry --force", "compile"]]
4848
end
4949
50+
This is an important to note especially when building for production. If your
51+
build or deployment system caches prior builds, it may not recompile Sentry
52+
and could cause issues with reported source code being out of date.
53+
54+
Due to Sentry reading the file system and defaulting to a recursive search
55+
of directories, it is important to check your configuration and compilation
56+
environment to avoid a folder recursion issue. Problems may be seen when
57+
deploying to the root folder, so it is best to follow the practice of
58+
compiling your application in its own folder. Modifying the
59+
`source_code_path_pattern` configuration option from its default is also
60+
an avenue to avoid compile problems.
61+
5062
"""
5163
@type file_map :: %{pos_integer() => String.t()}
5264
@type source_map :: %{String.t() => file_map}

0 commit comments

Comments
 (0)