File tree Expand file tree Collapse file tree 3 files changed +1
-13
lines changed Expand file tree Collapse file tree 3 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,6 @@ 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 ;
124
123
125
124
private _logMessage ?: string ;
126
125
@@ -165,9 +164,6 @@ export class Span implements SpanInterface {
165
164
if ( spanContext . endTimestamp ) {
166
165
this . _endTime = spanContext . endTimestamp ;
167
166
}
168
- if ( spanContext . exclusiveTime ) {
169
- this . _exclusiveTime = spanContext . exclusiveTime ;
170
- }
171
167
}
172
168
173
169
// This rule conflicts with another eslint rule :(
@@ -635,7 +631,6 @@ export class Span implements SpanInterface {
635
631
trace_id : this . _traceId ,
636
632
origin : this . _attributes [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] as SpanOrigin | undefined ,
637
633
_metrics_summary : getMetricSummaryJsonForSpan ( this ) ,
638
- exclusive_time : this . _exclusiveTime ,
639
634
measurements : this . _attributes [ SEMANTIC_ATTRIBUTE_MEASUREMENTS ] as Measurements | undefined ,
640
635
} ) ;
641
636
}
Original file line number Diff line number Diff line change @@ -105,9 +105,6 @@ describe('span', () => {
105
105
it ( 'disallows invalid attribute types' , ( ) => {
106
106
const span = new Span ( ) ;
107
107
108
- /** @ts -expect-error this is invalid */
109
- span . setAttribute ( 'str' , { } ) ;
110
-
111
108
/** @ts -expect-error this is invalid */
112
109
span . setAttribute ( 'str' , null ) ;
113
110
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export type SpanAttributes = Partial<{
30
30
'sentry.op' : string ;
31
31
'sentry.source' : string ;
32
32
'sentry.sample_rate' : number ;
33
+ measurements : Measurements ;
33
34
} > &
34
35
Record < string , SpanAttributeValue | undefined > ;
35
36
@@ -180,11 +181,6 @@ export interface SpanContext {
180
181
* The origin of the span, giving context about what created the span.
181
182
*/
182
183
origin ?: SpanOrigin | undefined ;
183
-
184
- /**
185
- * Exclusive time in milliseconds.
186
- */
187
- exclusiveTime ?: number ;
188
184
}
189
185
190
186
/** Span holding trace_id, span_id */
You can’t perform that action at this time.
0 commit comments