File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { CaptureContext } from './scope';
11
11
import { SdkInfo } from './sdkinfo' ;
12
12
import { Severity , SeverityLevel } from './severity' ;
13
13
import { Span } from './span' ;
14
- import { TransactionSource } from './transaction' ;
14
+ import { TransactionNameChange , TransactionSource } from './transaction' ;
15
15
import { User } from './user' ;
16
16
17
17
/** JSDoc */
@@ -49,6 +49,9 @@ export interface Event {
49
49
sdkProcessingMetadata ?: { [ key : string ] : any } ;
50
50
transaction_info ?: {
51
51
source : TransactionSource ;
52
+ name_changes : TransactionNameChange [ ] ;
53
+ // The total number of propagations that happened
54
+ num_propagations : number ;
52
55
} ;
53
56
}
54
57
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ export type {
73
73
TransactionMetadata ,
74
74
TransactionSamplingMethod ,
75
75
TransactionSource ,
76
+ TransactionNameChange ,
76
77
} from './transaction' ;
77
78
export type {
78
79
DurationUnit ,
Original file line number Diff line number Diff line change @@ -150,6 +150,12 @@ export interface TransactionMetadata {
150
150
151
151
/** Metadata for the transaction's spans, keyed by spanId */
152
152
spanMetadata : { [ spanId : string ] : { [ key : string ] : unknown } } ;
153
+
154
+ /** Metadata representing information about transaction name changes */
155
+ nameChanges : TransactionNameChange [ ] ;
156
+
157
+ /** The total number of propagations that happened */
158
+ numPropagations : number ;
153
159
}
154
160
155
161
/**
@@ -169,3 +175,17 @@ export type TransactionSource =
169
175
| 'component'
170
176
/** Name of a background task (e.g. a Celery task) */
171
177
| 'task' ;
178
+
179
+ /**
180
+ * Object representing metadata about when a transaction name was changed.
181
+ */
182
+ export interface TransactionNameChange {
183
+ // new name
184
+ name : string ;
185
+ // unix timestamp when the name was changed
186
+ timestamp : number ;
187
+ // new source
188
+ source : TransactionSource ;
189
+ // number of propagations since start of transaction.
190
+ propagations : number ;
191
+ }
You can’t perform that action at this time.
0 commit comments