File tree 4 files changed +29
-1
lines changed 4 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ export class Transaction extends SpanClass implements TransactionInterface {
45
45
this . metadata = {
46
46
...transactionContext . metadata ,
47
47
spanMetadata : { } ,
48
+ nameChanges : [ ] ,
49
+ propogations : 0 ,
48
50
} ;
49
51
50
52
this . _trimEnd = transactionContext . trimEnd ;
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,8 @@ export interface Event {
49
49
sdkProcessingMetadata ?: { [ key : string ] : any } ;
50
50
transaction_info ?: {
51
51
source : TransactionSource ;
52
+ name_changes : TransactionNameChange [ ] ;
53
+ propagations : number ;
52
54
} ;
53
55
}
54
56
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
+ propagations : number ;
153
159
}
154
160
155
161
/**
@@ -169,3 +175,20 @@ 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
+ /**
184
+ * Unix timestamp when the name was changed. Same type as the start and
185
+ * end timestamps of a transaction and span.
186
+ */
187
+ timestamp : number ;
188
+
189
+ /** New source applied for transaction name change */
190
+ source : TransactionSource ;
191
+
192
+ /** Number of propogations since start of transaction */
193
+ propagations : number ;
194
+ }
You can’t perform that action at this time.
0 commit comments