@@ -72,6 +72,7 @@ Sentry.init({
72
72
integrations: [new BrowserTracing ()],
73
73
});
74
74
```
75
+
75
76
``` js
76
77
// v8
77
78
import * as Sentry from ' @sentry/browser' ;
@@ -96,6 +97,7 @@ Sentry.init({
96
97
tracesSampleRate: 1.0 ,
97
98
});
98
99
```
100
+
99
101
``` js
100
102
// v8
101
103
import * as Sentry from ' @sentry/browser' ;
@@ -120,6 +122,7 @@ Sentry.init({
120
122
tracesSampleRate: 1.0 ,
121
123
});
122
124
```
125
+
123
126
``` js
124
127
// v8
125
128
const Sentry = require (' @sentry/node' );
@@ -140,6 +143,7 @@ classes.
140
143
// v7
141
144
import { RewriteFrames } from ' @sentry/integrations' ;
142
145
```
146
+
143
147
``` js
144
148
// v8
145
149
import { rewriteFramesIntegration } from ' @sentry/browser' ;
@@ -310,6 +314,7 @@ The `getIntegration()` and `getIntegrationById()` have been removed entirely, se
310
314
// v7
311
315
const replay = Sentry .getIntegration (Replay);
312
316
```
317
+
313
318
``` js
314
319
// v8
315
320
const replay = getClient ().getIntegrationByName (' Replay' );
@@ -337,6 +342,7 @@ Sentry.init({
337
342
integrations: [new Sentry .BrowserTracing ({ tracingOrigins: [' localhost' , ' example.com' ] })],
338
343
});
339
344
```
345
+
340
346
``` ts
341
347
// v8
342
348
Sentry .init ({
@@ -365,6 +371,7 @@ Sentry.init({
365
371
integrations: [Sentry .metricsAggregatorIntegration ()],
366
372
});
367
373
```
374
+
368
375
``` ts
369
376
// v8
370
377
Sentry .init ({
@@ -385,6 +392,7 @@ const levelA = Severity.error;
385
392
386
393
const levelB: SeverityLevel = " error"
387
394
```
395
+
388
396
``` js
389
397
// v8
390
398
import { SeverityLevel } from ' @sentry/types' ;
@@ -405,6 +413,7 @@ Sentry.configureScope(scope => {
405
413
scope .setTag (' key' , ' value' );
406
414
});
407
415
```
416
+
408
417
``` js
409
418
// v8
410
419
Sentry .getCurrentScope ().setTag (' key' , ' value' );
@@ -423,6 +432,7 @@ In v8, we are removing the `spanStatusfromHttpCode` function in favor of `getSpa
423
432
// v7
424
433
const spanStatus = spanStatusfromHttpCode (200 );
425
434
```
435
+
426
436
``` js
427
437
// v8
428
438
const spanStatus = getSpanStatusFromHttpCode (200 );
@@ -439,6 +449,7 @@ addGlobalEventProcessor(event => {
439
449
return event ;
440
450
});
441
451
```
452
+
442
453
``` js
443
454
// v8
444
455
addEventProcessor (event => {
@@ -462,6 +473,7 @@ interface Transport {
462
473
send(event : Event ): Promise <void | TransportMakeRequestResponse >;
463
474
}
464
475
```
476
+
465
477
``` ts
466
478
// v8
467
479
interface Transport {
@@ -553,6 +565,7 @@ module.exports = withSentryConfig(nextConfig, {
553
565
// Your Sentry Webpack Plugin Options...
554
566
});
555
567
```
568
+
556
569
``` ts
557
570
// v8
558
571
const nextConfig = {
@@ -621,6 +634,7 @@ sentrySvelteKit({
621
634
},
622
635
}),
623
636
```
637
+
624
638
``` js
625
639
// v8
626
640
sentrySvelteKit ({
0 commit comments