Skip to content

Commit 57a0192

Browse files
committed
Remove :unsampled handling from send_transaction function
1 parent 1f53bc2 commit 57a0192

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/sentry/client.ex

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ defmodule Sentry.Client do
110110
@spec send_transaction(Transaction.t(), keyword()) ::
111111
{:ok, transaction_id :: String.t()}
112112
| {:error, ClientError.t()}
113-
| :unsampled
114113
| :excluded
115114
def send_transaction(%Transaction{} = transaction, opts \\ []) do
116115
opts = NimbleOptions.validate!(opts, Options.send_transaction_schema())
@@ -130,10 +129,6 @@ defmodule Sentry.Client do
130129
_ignored = maybe_call_after_send(transaction, send_result, after_send_event)
131130
send_result
132131
else
133-
:unsampled ->
134-
ClientReport.Sender.record_discarded_events(:sample_rate, [transaction])
135-
:unsampled
136-
137132
:excluded ->
138133
:excluded
139134
end

0 commit comments

Comments
 (0)