Skip to content

Commit 5ad06c4

Browse files
committed
fix formatting
1 parent 45b2c4e commit 5ad06c4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

MIGRATION.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Sentry.init({
7272
integrations: [new BrowserTracing()],
7373
});
7474
```
75+
7576
```js
7677
// v8
7778
import * as Sentry from '@sentry/browser';
@@ -96,6 +97,7 @@ Sentry.init({
9697
tracesSampleRate: 1.0,
9798
});
9899
```
100+
99101
```js
100102
// v8
101103
import * as Sentry from '@sentry/browser';
@@ -120,6 +122,7 @@ Sentry.init({
120122
tracesSampleRate: 1.0,
121123
});
122124
```
125+
123126
```js
124127
// v8
125128
const Sentry = require('@sentry/node');
@@ -140,6 +143,7 @@ classes.
140143
// v7
141144
import { RewriteFrames } from '@sentry/integrations';
142145
```
146+
143147
```js
144148
// v8
145149
import { rewriteFramesIntegration } from '@sentry/browser';
@@ -310,6 +314,7 @@ The `getIntegration()` and `getIntegrationById()` have been removed entirely, se
310314
// v7
311315
const replay = Sentry.getIntegration(Replay);
312316
```
317+
313318
```js
314319
// v8
315320
const replay = getClient().getIntegrationByName('Replay');
@@ -337,6 +342,7 @@ Sentry.init({
337342
integrations: [new Sentry.BrowserTracing({ tracingOrigins: ['localhost', 'example.com'] })],
338343
});
339344
```
345+
340346
```ts
341347
// v8
342348
Sentry.init({
@@ -365,6 +371,7 @@ Sentry.init({
365371
integrations: [Sentry.metricsAggregatorIntegration()],
366372
});
367373
```
374+
368375
```ts
369376
// v8
370377
Sentry.init({
@@ -385,6 +392,7 @@ const levelA = Severity.error;
385392

386393
const levelB: SeverityLevel = "error"
387394
```
395+
388396
```js
389397
// v8
390398
import { SeverityLevel } from '@sentry/types';
@@ -405,6 +413,7 @@ Sentry.configureScope(scope => {
405413
scope.setTag('key', 'value');
406414
});
407415
```
416+
408417
```js
409418
// v8
410419
Sentry.getCurrentScope().setTag('key', 'value');
@@ -423,6 +432,7 @@ In v8, we are removing the `spanStatusfromHttpCode` function in favor of `getSpa
423432
// v7
424433
const spanStatus = spanStatusfromHttpCode(200);
425434
```
435+
426436
```js
427437
// v8
428438
const spanStatus = getSpanStatusFromHttpCode(200);
@@ -439,6 +449,7 @@ addGlobalEventProcessor(event => {
439449
return event;
440450
});
441451
```
452+
442453
```js
443454
// v8
444455
addEventProcessor(event => {
@@ -462,6 +473,7 @@ interface Transport {
462473
send(event: Event): Promise<void | TransportMakeRequestResponse>;
463474
}
464475
```
476+
465477
```ts
466478
// v8
467479
interface Transport {
@@ -553,6 +565,7 @@ module.exports = withSentryConfig(nextConfig, {
553565
// Your Sentry Webpack Plugin Options...
554566
});
555567
```
568+
556569
```ts
557570
// v8
558571
const nextConfig = {
@@ -621,6 +634,7 @@ sentrySvelteKit({
621634
},
622635
}),
623636
```
637+
624638
```js
625639
// v8
626640
sentrySvelteKit({

0 commit comments

Comments
 (0)