From 69b474c71bc83ee11915895ee922f968050a4739 Mon Sep 17 00:00:00 2001 From: Kurtis Rainbolt-Greene Date: Tue, 26 Sep 2023 15:19:30 -0700 Subject: [PATCH] elixir: 9.0.0 broke a public API for configuration that was "soft deprecated" (#7930) The documentation was never updated with the new configuration property and also I don't know if it was ever truly soft deprecated in the code. Easy to miss and I'm glad it's finally been hard deprecated. --- src/platforms/elixir/index.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platforms/elixir/index.mdx b/src/platforms/elixir/index.mdx index 87b73fdd7d7dc..5953008bb0d56 100644 --- a/src/platforms/elixir/index.mdx +++ b/src/platforms/elixir/index.mdx @@ -42,7 +42,7 @@ config :sentry, dsn: "___PUBLIC_DSN___", environment_name: :prod, enable_source_code_context: true, - root_source_code_path: File.cwd!(), + root_source_code_paths: [File.cwd!()], tags: %{ env: "production" }, @@ -197,12 +197,12 @@ defp aliases do end ``` -To enable, set `:enable_source_code_context` and `root_source_code_path`: +To enable, set `:enable_source_code_context` and `root_source_code_paths`: ```elixir config :sentry, enable_source_code_context: true, - root_source_code_path: File.cwd!() + root_source_code_paths: [File.cwd!()] ``` For more documentation, see [Sentry.Sources](https://hexdocs.pm/sentry/Sentry.Sources.html).