File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ export class Span implements SpanInterface {
120
120
protected _endTime ?: number | undefined ;
121
121
/** Internal keeper of the status */
122
122
protected _status ?: SpanStatusType | string | undefined ;
123
+ protected _exclusiveTime ?: number ;
123
124
124
125
private _logMessage ?: string ;
125
126
@@ -164,6 +165,9 @@ export class Span implements SpanInterface {
164
165
if ( spanContext . endTimestamp ) {
165
166
this . _endTime = spanContext . endTimestamp ;
166
167
}
168
+ if ( spanContext . exclusiveTime ) {
169
+ this . _exclusiveTime = spanContext . exclusiveTime ;
170
+ }
167
171
}
168
172
169
173
// This rule conflicts with another eslint rule :(
@@ -631,6 +635,7 @@ export class Span implements SpanInterface {
631
635
trace_id : this . _traceId ,
632
636
origin : this . _attributes [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] as SpanOrigin | undefined ,
633
637
_metrics_summary : getMetricSummaryJsonForSpan ( this ) ,
638
+ exclusive_time : this . _exclusiveTime ,
634
639
measurements : this . _attributes [ SEMANTIC_ATTRIBUTE_MEASUREMENTS ] as Measurements | undefined ,
635
640
} ) ;
636
641
}
Original file line number Diff line number Diff line change @@ -181,6 +181,11 @@ export interface SpanContext {
181
181
* The origin of the span, giving context about what created the span.
182
182
*/
183
183
origin ?: SpanOrigin | undefined ;
184
+
185
+ /**
186
+ * Exclusive time in milliseconds.
187
+ */
188
+ exclusiveTime ?: number ;
184
189
}
185
190
186
191
/** Span holding trace_id, span_id */
You can’t perform that action at this time.
0 commit comments