We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39312e8 commit c288ad4Copy full SHA for c288ad4
packages/apm/src/hubextensions.ts
@@ -6,10 +6,8 @@ import { Span } from './span';
6
import { Transaction } from './transaction';
7
8
/** 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();
+function traceHeaders(this: Hub): { [key: string]: string } {
+ const scope = this.getScope();
13
if (scope) {
14
const span = scope.getSpan();
15
if (span) {
0 commit comments