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 b1d70e9 commit 8ee3211Copy full SHA for 8ee3211
platform-includes/performance/configure-sample-rate/javascript.hono.mdx
@@ -0,0 +1,17 @@
1
+```javascript
2
+import * as Sentry from "@sentry/node"
3
+
4
+Sentry.init({
5
+ dsn: "___PUBLIC_DSN___",
6
7
+ // We recommend adjusting this value in production, or using tracesSampler
8
+ // for finer control
9
+ tracesSampleRate: 1.0,
10
11
+ // Enhanced tracing options
12
+ environment: process.env.NODE_ENV || 'development',
13
14
+ // Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
15
+ tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/],
16
+});
17
+```
0 commit comments