Skip to content

Commit d209e89

Browse files
committed
improve
1 parent 46e57a8 commit d209e89

File tree

1 file changed

+9
-10
lines changed
  • sentry-samples/sentry-samples-console/src/main/java/io/sentry/samples/console

1 file changed

+9
-10
lines changed

sentry-samples/sentry-samples-console/src/main/java/io/sentry/samples/console/Main.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)