Skip to content

Commit 9606c1d

Browse files
committed
migration doc
revert next-env.d.ts change once again fix things after rebasing :(
1 parent 971684b commit 9606c1d

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

MIGRATION.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ In v8, the Span class is heavily reworked. The following properties & methods ar
177177
- `span.setData()`: Use `span.setAttribute()` instead.
178178
- `span.instrumenter` This field was removed and will be replaced internally.
179179
- `span.transaction`: Use `getRootSpan` utility function instead.
180+
- `span.op`: Use `startSpan` functions to set, `setAttribute()` to update and `spanToJSON` to read the span operation.
180181
- `transaction.setMetadata()`: Use attributes instead, or set data on the scope.
181182
- `transaction.metadata`: Use attributes instead, or set data on the scope.
182183
- `transaction.setContext()`: Set context on the surrounding scope instead.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
/// <reference types="next/navigation-types/compat/navigation" />
43

54
// NOTE: This file should not be edited
65
// see https://nextjs.org/docs/basic-features/typescript for more information.

packages/tracing-internal/src/browser/metrics/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ export function addPerformanceEntries(transaction: Transaction): void {
193193
const startTime = msToSec(entry.startTime);
194194
const duration = msToSec(entry.duration);
195195

196+
// eslint-disable-next-line deprecation/deprecation
196197
if (transaction.op === 'navigation' && transactionStartTime && timeOrigin + startTime < transactionStartTime) {
197198
return;
198199
}

0 commit comments

Comments
 (0)