Skip to content

Commit b2e4656

Browse files
Merge branch 'egou/v7/feat/add-exclusive-time-and-measurements-to-spans' of github.com:getsentry/sentry-javascript into egou/v7/feat/create-interaction-spans-on-inp
2 parents ccd8ec1 + 2b495f1 commit b2e4656

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
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/core/test/lib/tracing/span.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ describe('span', () => {
105105
it('disallows invalid attribute types', () => {
106106
const span = new Span();
107107

108-
/** @ts-expect-error this is invalid */
109-
span.setAttribute('str', {});
110-
111108
/** @ts-expect-error this is invalid */
112109
span.setAttribute('str', null);
113110

packages/types/src/span.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export type SpanAttributes = Partial<{
3030
'sentry.op': string;
3131
'sentry.source': string;
3232
'sentry.sample_rate': number;
33+
measurements: Measurements;
3334
}> &
3435
Record<string, SpanAttributeValue | undefined>;
3536

@@ -180,11 +181,6 @@ export interface SpanContext {
180181
* The origin of the span, giving context about what created the span.
181182
*/
182183
origin?: SpanOrigin | undefined;
183-
184-
/**
185-
* Exclusive time in milliseconds.
186-
*/
187-
exclusiveTime?: number;
188184
}
189185

190186
/** Span holding trace_id, span_id */

0 commit comments

Comments
 (0)