File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export class Transaction extends SpanClass implements TransactionInterface {
74
74
this . _name = newName ;
75
75
const source = 'custom' ;
76
76
this . metadata . source = source ;
77
- this . metadata . nameChanges . push ( generateTransactionNameChange ( newName , source , this . metadata . numPropagations ) ) ;
77
+ this . metadata . nameChanges . push ( generateTransactionNameChange ( source , this . metadata . numPropagations ) ) ;
78
78
}
79
79
80
80
/**
@@ -83,7 +83,7 @@ export class Transaction extends SpanClass implements TransactionInterface {
83
83
public setName ( name : string , source : TransactionMetadata [ 'source' ] = 'custom' ) : void {
84
84
this . name = name ;
85
85
this . metadata . source = source ;
86
- this . metadata . nameChanges . push ( generateTransactionNameChange ( name , source , this . metadata . numPropagations ) ) ;
86
+ this . metadata . nameChanges . push ( generateTransactionNameChange ( source , this . metadata . numPropagations ) ) ;
87
87
}
88
88
89
89
/**
@@ -291,13 +291,8 @@ export class Transaction extends SpanClass implements TransactionInterface {
291
291
}
292
292
293
293
/** Generate objects representing a transaction name change */
294
- export function generateTransactionNameChange (
295
- name : string ,
296
- source : TransactionSource ,
297
- propagations : number ,
298
- ) : TransactionNameChange {
294
+ export function generateTransactionNameChange ( source : TransactionSource , propagations : number ) : TransactionNameChange {
299
295
return {
300
- name,
301
296
source,
302
297
timestamp : timestampWithMs ( ) ,
303
298
propagations,
Original file line number Diff line number Diff line change @@ -180,8 +180,6 @@ export type TransactionSource =
180
180
* Object representing metadata about when a transaction name was changed.
181
181
*/
182
182
export interface TransactionNameChange {
183
- // new name
184
- name : string ;
185
183
// unix timestamp when the name was changed
186
184
timestamp : number ;
187
185
// new source
You can’t perform that action at this time.
0 commit comments