Skip to content

Commit 8ee3211

Browse files
authored
Fix(hono): custom hono tracing instrumentation code (#14093)
Hono tracing page pointed to our browser sdk and also to our `browserTracingIntegration`, now it points to our node sdk.
1 parent b1d70e9 commit 8ee3211

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)