Skip to content

Commit 0b28ded

Browse files
authored
fix(ruby): Fix trace_sampler examples to use new op (#5787)
1 parent 34ce07b commit 0b28ded

File tree

2 files changed

+2
-2
lines changed
  • src/platform-includes/performance

2 files changed

+2
-2
lines changed

src/platform-includes/performance/traces-sampler-as-filter/ruby.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Sentry.init do |config|
1313
transaction_name = transaction_context[:name]
1414

1515
case op
16-
when /request/
16+
when /http/
1717
case transaction_name
1818
when /health_check/
1919
0.0 # ignore health_check requests

src/platform-includes/performance/traces-sampler-as-sampler/ruby.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Sentry.init do |config|
1818
transaction_name = transaction_context[:name]
1919

2020
case op
21-
when /request/
21+
when /http/
2222
# for Rails applications, transaction_name would be the request's path (env["PATH_INFO"]) instead of "Controller#action"
2323
case transaction_name
2424
when /health_check/

0 commit comments

Comments
 (0)