Skip to content

Commit dec6568

Browse files
committed
add migration docs
1 parent 2c96ffc commit dec6568

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

MIGRATION.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ In v8, the Span class is heavily reworked. The following properties & methods ar
1515
* `span.toContext()`: Access the fields directly instead.
1616
* `span.updateWithContext(newSpanContext)`: Update the fields directly instead.
1717
* `span.setName(newName)`: Use `span.updateName(newName)` instead.
18-
* `span.toTraceparent()`: use `spanToTraceHeader(span)` util instead.
19-
* `span.getTraceContext()`: Use `spanToTraceContext(span)` utility function instead.
18+
* `span.toTraceparent()`: use `spanToTraceHeader(span)` instead.
19+
* `span.getTraceContext()`: Use `spanToTraceContext(span)` instead.
20+
* `span.name`: Use `spanGetName(span)` instead.
21+
* `span.description`: Use `spanGetName(span)` instead.
2022

2123
## Deprecate `pushScope` & `popScope` in favor of `withScope`
2224

@@ -57,7 +59,7 @@ Sentry.init({
5759
const lastCapturedEventId = event.event_id;
5860

5961
// Do something with `lastCapturedEventId` here
60-
62+
6163
return event;
6264
},
6365
});

0 commit comments

Comments
 (0)