Skip to content

Commit c288ad4

Browse files
committed
ref: Also fix traceHeaders
1 parent 39312e8 commit c288ad4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/apm/src/hubextensions.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ import { Span } from './span';
66
import { Transaction } from './transaction';
77

88
/** Returns all trace headers that are currently on the top scope. */
9-
function traceHeaders(): { [key: string]: string } {
10-
// @ts-ignore
11-
const that = this as Hub;
12-
const scope = that.getScope();
9+
function traceHeaders(this: Hub): { [key: string]: string } {
10+
const scope = this.getScope();
1311
if (scope) {
1412
const span = scope.getSpan();
1513
if (span) {

0 commit comments

Comments
 (0)