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 11import { getCurrentHub , Hub } from '@sentry/hub' ;
2- import { TransactionContext } from '@sentry/types' ;
2+ import { Transaction as TransactionInterface , TransactionContext } from '@sentry/types' ;
33import { isInstanceOf , logger } from '@sentry/utils' ;
44
55import { Span as SpanClass , SpanRecorder } from './span' ;
66
77/** JSDoc */
8- export class Transaction extends SpanClass {
9- public name ? : string ;
8+ export class Transaction extends SpanClass implements TransactionInterface {
9+ public name : string ;
1010
1111 /**
1212 * The reference to the current hub.
@@ -29,9 +29,7 @@ export class Transaction extends SpanClass {
2929 this . _hub = hub as Hub ;
3030 }
3131
32- if ( transactionContext . name ) {
33- this . name = transactionContext . name ;
34- }
32+ this . name = transactionContext . name ? transactionContext . name : '' ;
3533
3634 this . _trimEnd = transactionContext . trimEnd ;
3735 }
You can’t perform that action at this time.
0 commit comments