Enable Sentry
This commit is contained in:
@@ -100,6 +100,12 @@ config :music_library, MusicLibrary.BackgroundRepo, priv: "priv/background_repo"
|
||||
|
||||
config :fluxon, :translate_function, &MusicLibraryWeb.CoreComponents.translate_error/1
|
||||
|
||||
config :sentry,
|
||||
client: Sentry.FinchClient,
|
||||
environment_name: config_env(),
|
||||
enable_source_code_context: true,
|
||||
root_source_code_paths: [File.cwd!()]
|
||||
|
||||
# Import environment specific config. This must remain at the bottom
|
||||
# of this file so it overrides the configuration defined above.
|
||||
import_config "#{config_env()}.exs"
|
||||
|
||||
@@ -153,6 +153,15 @@ if config_env() == :prod do
|
||||
],
|
||||
secret_key_base: secret_key_base
|
||||
|
||||
sentry_dsn =
|
||||
System.get_env("SENTRY_DSN") ||
|
||||
raise """
|
||||
environment variable SENTRY_DSN is missing.
|
||||
"""
|
||||
|
||||
config :sentry,
|
||||
dsn: sentry_dsn
|
||||
|
||||
# ## SSL Support
|
||||
#
|
||||
# To get SSL working, you will need to add the `https` key
|
||||
|
||||
Reference in New Issue
Block a user