Skip to content

Commit

Permalink
Fix sentry environment names (#183)
Browse files Browse the repository at this point in the history
* fixed sentry environment

* string to atom

---------

Co-authored-by: Awais <[email protected]>
  • Loading branch information
jBonoraW and awaistkd authored Nov 2, 2023
1 parent a9bfa99 commit 5e7c5df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/releases.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ config :postoffice, Postoffice.Repo,

config :sentry,
dsn: {:system, "POSTOFFICE_SENTRY_DSN", default: ""},
environment_name: Mix.env(),
environment_name: String.to_atom(System.get_env("SENTRY_ENVIRONMENT", "")),
enable_source_code_context: true,
root_source_code_path: File.cwd!(),
tags: %{
env: Mix.env()
namespace: {:system, "NAMESPACE", default: ""}
},
included_environments: [:prod]
included_environments: [:production, :staging]

# If K8S_CLUSTER env_variable is set we'll try to setup a k8s cluster
if System.get_env("K8S_CLUSTER") do
Expand Down

0 comments on commit 5e7c5df

Please sign in to comment.