8000 fix: Fix addPerformanceEntries typo (#2847) · ebeloded/sentry-javascript@beec03c · GitHub
[go: up one dir, main page]

Skip to content

Commit beec03c

Browse files
authored
fix: Fix addPerformanceEntries typo (getsentry#2847)
1 parent c97c8f8 commit beec03c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/tracing/src/browser/browsertracing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class BrowserTracing implements Integration {
203203
logger.log(`[Tracing] starting ${ctx.op} idleTransaction on scope`);
204204
const idleTransaction = startIdleTransaction(hub, ctx, idleTimeout, true);
205205
idleTransaction.registerBeforeFinishCallback((transaction, endTimestamp) => {
206-
this._metrics.addPerformanceEntires(transaction);
206+
this._metrics.addPerformanceEntries(transaction);
207207
adjustTransactionDuration(secToMs(maxTransactionDuration), transaction, endTimestamp);
208208
});
209209

packages/tracing/src/browser/metrics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class MetricsInstrumentation {
2626
}
2727

2828
/** Add performance related spans to a transaction */
29-
public addPerformanceEntires(transaction: Transaction): void {
29+
public addPerformanceEntries(transaction: Transaction): void {
3030
if (!global || !global.performance || !global.performance.getEntries) {
3131
// Gatekeeper if performance API not available
3232
return;

0 commit comments

Comments
 (0)
0