Skip to content

Commit 2b495f1

Browse files
remove exclusiveTime as a field from spans
1 parent b990a55 commit 2b495f1

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

packages/core/src/tracing/span.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ export class Span implements SpanInterface {
120120
protected _endTime?: number | undefined;
121121
/** Internal keeper of the status */
122122
protected _status?: SpanStatusType | string | undefined;
123-
protected _exclusiveTime?: number;
124123

125124
private _logMessage?: string;
126125

@@ -165,9 +164,6 @@ export class Span implements SpanInterface {
165164
if (spanContext.endTimestamp) {
166165
this._endTime = spanContext.endTimestamp;
167166
}
168-
if (spanContext.exclusiveTime) {
169-
this._exclusiveTime = spanContext.exclusiveTime;
170-
}
171167
}
172168

173169
// This rule conflicts with another eslint rule :(
@@ -635,7 +631,6 @@ export class Span implements SpanInterface {
635631
trace_id: this._traceId,
636632
origin: this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN] as SpanOrigin | undefined,
637633
_metrics_summary: getMetricSummaryJsonForSpan(this),
638-
exclusive_time: this._exclusiveTime,
639634
measurements: this._attributes[SEMANTIC_ATTRIBUTE_MEASUREMENTS] as Measurements | undefined,
640635
});
641636
}

packages/types/src/span.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,6 @@ export interface SpanContext {
181181
* The origin of the span, giving context about what created the span.
182182
*/
183183
origin?: SpanOrigin | undefined;
184-
185-
/**
186-
* Exclusive time in milliseconds.
187-
*/
188-
exclusiveTime?: number;
189184
}
190185

191186
/** Span holding trace_id, span_id */

0 commit comments

Comments
 (0)