We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5102f0 commit 923eb4eCopy full SHA for 923eb4e
sentry-ruby/spec/sentry/rack/capture_exceptions_spec.rb
@@ -297,6 +297,20 @@ def will_be_sampled_by_sdk
297
verify_transaction_attributes(transaction)
298
verify_transaction_inherits_external_transaction(transaction, external_transaction)
299
end
300
+
301
+ context "performing an HTTP OPTIONS request" do
302
+ let(:additional_headers) do
303
+ { method: "OPTIONS" }
304
+ end
305
306
+ it "doesn't sample transaction" do
307
+ wont_be_sampled_by_sdk
308
309
+ stack.call(env)
310
311
+ expect(transaction).to be_nil
312
313
314
315
316
context "with unsampled trace" do
0 commit comments