Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Fix sentry environments (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
klaus993 authored Sep 26, 2023
1 parent 84e3ec3 commit d9e26d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
]

0 comments on commit d9e26d7

Please sign in to comment.