From 1134162b76181cbf91cc7c616199f065cf4aeeae Mon Sep 17 00:00:00 2001 From: Beatrix Klebe Date: Tue, 29 Aug 2023 16:09:03 -0400 Subject: [PATCH] fix: add all umbrella children to root_source_code_paths --- config/runtime.exs | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index b6a692df..8264e480 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -9,19 +9,29 @@ if is_prod? and is_release? do sentry_env = System.get_env("SENTRY_ENV") if not is_nil(sentry_env) do - config :sentry, filter: ApiWeb.SentryEventFilter, + config :sentry, + filter: ApiWeb.SentryEventFilter, dsn: System.fetch_env!("SENTRY_DSN"), environment_name: sentry_env, enable_source_code_context: true, - root_source_code_path: File.cwd!(), + root_source_code_paths: [ + "#{File.cwd!()}/apps/alb_monitor", + "#{File.cwd!()}/apps/api_accounts", + "#{File.cwd!()}/apps/api_web", + "#{File.cwd!()}/apps/events", + "#{File.cwd!()}/apps/fetch", + "#{File.cwd!()}/apps/health", + "#{File.cwd!()}/apps/model", + "#{File.cwd!()}/apps/parse", + "#{File.cwd!()}/apps/state", + "#{File.cwd!()}/apps/state_mediator" + ], tags: %{ env: sentry_env }, included_environments: [sentry_env] - config :logger, Sentry.LoggerBackend, - level: :error - + config :logger, Sentry.LoggerBackend, level: :error end config :ex_aws,