Enable Sentry

This commit is contained in:
Claudio Ortolina
2025-10-01 13:34:09 +03:00
parent 67341f3ceb
commit 4c33d3f0aa
8 changed files with 53 additions and 0 deletions
+6
View File
@@ -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"
+9
View File
@@ -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