Skip to content

Commit

Permalink
feat: have Sentry report code context
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Sep 5, 2024
1 parent 277fc18 commit 9842843
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ config :dotcom, :otp_module, OpenTripPlannerClient
config :dotcom, :req_module, Req

config :sentry,
json_library: Poison
enable_source_code_context: true,
root_source_code_paths: [File.cwd!()],
context_lines: 5

for config_file <- Path.wildcard("config/{deps,dotcom}/*.exs") do
import_config("../#{config_file}")
Expand Down
1 change: 1 addition & 0 deletions deploy/dotcom/prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ RUN mix sentry.package_source_code
# re-compile the application after the assets are copied, since some of them
# are built into the application (SVG icons)
RUN mix do compile, phx.digest
RUN mix sentry.package_source_code
RUN mix release

# 4) Use the nodejs container for the runtime environment
Expand Down

0 comments on commit 9842843

Please sign in to comment.