File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { getCurrentHub , Hub } from '@sentry/hub' ;
2
- import { TransactionContext } from '@sentry/types' ;
2
+ import { Transaction as TransactionInterface , TransactionContext } from '@sentry/types' ;
3
3
import { isInstanceOf , logger } from '@sentry/utils' ;
4
4
5
5
import { Span as SpanClass , SpanRecorder } from './span' ;
6
6
7
7
/** JSDoc */
8
- export class Transaction extends SpanClass {
9
- public name ? : string ;
8
+ export class Transaction extends SpanClass implements TransactionInterface {
9
+ public name : string ;
10
10
11
11
/**
12
12
* The reference to the current hub.
@@ -29,9 +29,7 @@ export class Transaction extends SpanClass {
29
29
this . _hub = hub as Hub ;
30
30
}
31
31
32
- if ( transactionContext . name ) {
33
- this . name = transactionContext . name ;
34
- }
32
+ this . name = transactionContext . name ? transactionContext . name : '' ;
35
33
36
34
this . _trimEnd = transactionContext . trimEnd ;
37
35
}
You can’t perform that action at this time.
0 commit comments