Skip to content

Commit 64bce3d

Browse files
Merge pull request #474 from sneako/patch-1
Handle :unsampled events in sentry.send_test_event
2 parents 5204d29 + e0cf0e8 commit 64bce3d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/mix/tasks/sentry.send_test_event.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ defmodule Mix.Tasks.Sentry.SendTestEvent do
6363

6464
:excluded ->
6565
Mix.shell().info("No test event was sent because the event was excluded by a filter")
66+
67+
:unsampled ->
68+
Mix.shell().info(
69+
"No test event was sent because the event was excluded according to the sample_rate"
70+
)
6671
end
6772
else
6873
Mix.shell().info(

0 commit comments

Comments
 (0)