@@ -143,20 +143,6 @@ defmodule Sentry.Config do
143143 be used as the value for this option.
144144 """
145145 ] ,
146- traces_sample_rate: [
147- type: { :custom , __MODULE__ , :__validate_traces_sample_rate__ , [ ] } ,
148- default: 0.0 ,
149- doc: """
150- The sample rate for transaction events. A value between `0.0` and `1.0` (inclusive).
151- A value of `0.0` means no transactions will be sampled, while `1.0` means all transactions
152- will be sampled. This value is also used to determine if tracing is enabled: if it's
153- greater than `0`, tracing is enabled.
154-
155- Tracing requires OpenTelemetry packages to work. See [the
156- OpenTelemetry setup documentation](https://opentelemetry.io/docs/languages/erlang/getting-started/)
157- for guides on how to set it up.
158- """
159- ] ,
160146 included_environments: [
161147 type: { :or , [ { :in , [ :all ] } , { :list , { :or , [ :atom , :string ] } } ] } ,
162148 deprecated: "Use :dsn to control whether to send events to Sentry." ,
@@ -621,9 +607,6 @@ defmodule Sentry.Config do
621607 @ spec sample_rate ( ) :: float ( )
622608 def sample_rate , do: fetch! ( :sample_rate )
623609
624- @ spec traces_sample_rate ( ) :: float ( )
625- def traces_sample_rate , do: fetch! ( :traces_sample_rate )
626-
627610 @ spec hackney_opts ( ) :: keyword ( )
628611 def hackney_opts , do: fetch! ( :hackney_opts )
629612
@@ -661,9 +644,6 @@ defmodule Sentry.Config do
661644 @ spec integrations ( ) :: keyword ( )
662645 def integrations , do: fetch! ( :integrations )
663646
664- @ spec tracing? ( ) :: boolean ( )
665- def tracing? , do: fetch! ( :traces_sample_rate ) > 0.0
666-
667647 @ spec put_config ( atom ( ) , term ( ) ) :: :ok
668648 def put_config ( key , value ) when is_atom ( key ) do
669649 unless key in @ valid_keys do
@@ -763,15 +743,6 @@ defmodule Sentry.Config do
763743 end
764744 end
765745
766- def __validate_traces_sample_rate__ ( float ) do
767- if is_float ( float ) and float >= 0.0 and float <= 1.0 do
768- { :ok , float }
769- else
770- { :error ,
771- "expected :traces_sample_rate to be a float between 0.0 and 1.0 (included), got: #{ inspect ( float ) } " }
772- end
773- end
774-
775746 def __validate_json_library__ ( nil ) do
776747 { :error , "nil is not a valid value for the :json_library option" }
777748 end
0 commit comments