diff --git a/config/prod.exs b/config/prod.exs index bd056219..c9f44d1b 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -18,10 +18,13 @@ config :logger, level: :info # of environment variables, is done on config/runtime.exs. config :sentry, dsn: System.get_env("SENTRY_DSN"), - environment_name: :prod, + environment_name: + if(System.get_env("SENTRY_ENV") == "production", do: :production, else: :testing), enable_source_code_context: true, root_source_code_path: File.cwd!(), tags: %{ env: System.get_env("SENTRY_ENV") }, - included_environments: [:prod] + included_environments: [ + if(System.get_env("SENTRY_ENV") == "production", do: :production, else: :testing) + ]