We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba9a704 commit 0d3d2a1Copy full SHA for 0d3d2a1
packages/cloudflare/README.md
@@ -114,16 +114,16 @@ Currently only ESM handlers are supported.
114
import * as Sentry from '@sentry/cloudflare';
115
116
export default withSentry(
117
- (env) => ({
118
- dsn: env.SENTRY_DSN,
+ env => ({
+ dsn: env.SENTRY_DSN,
119
// Set tracesSampleRate to 1.0 to capture 100% of spans for tracing.
120
- tracesSampleRate: 1.0,
121
- }),
122
- {
123
- async fetch(request, env, ctx) {
124
- return new Response('Hello World!');
125
- },
126
- } satisfies ExportedHandler<Env>
+ tracesSampleRate: 1.0,
+ }),
+ {
+ async fetch(request, env, ctx) {
+ return new Response('Hello World!');
+ },
+ } satisfies ExportedHandler<Env>,
127
);
128
```
129
0 commit comments