File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
sentry-samples/sentry-samples-console/src/main/java/io/sentry/samples/console Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -82,16 +82,15 @@ public static void main(String[] args) throws InterruptedException {
8282 options .setTracesSampleRate (1.0 ); // set 0.5 to send 50% of traces
8383
8484 // Determine traces sample rate based on the sampling context
85- // options.setTracesSampler(
86- // context -> {
87- // // only 10% of transactions with "/product" prefix will be collected
88- // if (!context.getTransactionContext().getName().startsWith("/products"))
89- // {
90- // return 0.1;
91- // } else {
92- // return 0.5;
93- // }
94- // });
85+ // options.setTracesSampler(
86+ // context -> {
87+ // // only 10% of transactions with "/product" prefix will be collected
88+ // if (!context.getTransactionContext().getName().startsWith("/products")) {
89+ // return 0.1;
90+ // } else {
91+ // return 0.5;
92+ // }
93+ // });
9594 });
9695
9796 Sentry .addBreadcrumb (
You can’t perform that action at this time.
0 commit comments