Skip to content

Commit

Permalink
fix tests, migration doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Jan 18, 2024
1 parent 8661716 commit 49ae0f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions MIGRATION.md
Expand Up @@ -193,6 +193,7 @@ In v8, the Span class is heavily reworked. The following properties & methods ar
- `span.getTraceContext()`: Use `spanToTraceContext(span)` utility function instead.
- `span.sampled`: Use `span.isRecording()` instead.
- `span.spanId`: Use `span.spanContext().spanId` instead.
- `span.parentSpanId`: Use `spanToJSON(span).parent_span_id` instead.
- `span.traceId`: Use `span.spanContext().traceId` instead.
- `span.name`: Use `spanToJSON(span).description` instead.
- `span.description`: Use `spanToJSON(span).description` instead.
Expand Down
2 changes: 1 addition & 1 deletion docs/v8-new-performance-apis.md
Expand Up @@ -46,7 +46,7 @@ below to see which things used to exist, and how they can/should be mapped going
| --------------------- | ---------------------------------------------------- |
| `traceId` | `spanContext().traceId` |
| `spanId` | `spanContext().spanId` |
| `parentSpanId` | Unchanged |
| `parentSpanId` | `spanToJSON(span).parent_span_id` |
| `status` | use utility method TODO |
| `sampled` | `spanIsSampled(span)` |
| `startTimestamp` | `startTime` - note that this has a different format! |
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/lib/scope.test.ts
Expand Up @@ -544,7 +544,7 @@ describe('withActiveSpan()', () => {
});

it('should create child spans when calling startSpan within the callback', done => {
expect.assertions(1);
expect.assertions(2);
const inactiveSpan = startInactiveSpan({ name: 'inactive-span' });

withActiveSpan(inactiveSpan!, () => {
Expand Down

0 comments on commit 49ae0f8

Please sign in to comment.