Skip to content

Commit da1c387

Browse files
committed
drop here too
1 parent feda36e commit da1c387

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/core/src/tracing/sentrySpan.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import type {
2626
} from '../types-hoist';
2727
import type { SpanLink } from '../types-hoist/link';
2828
import { logger } from '../utils-hoist/logger';
29-
import { dropUndefinedKeys } from '../utils-hoist/object';
3029
import { generateSpanId, generateTraceId } from '../utils-hoist/propagationContext';
3130
import { timestampInSeconds } from '../utils-hoist/time';
3231
import {
@@ -223,7 +222,7 @@ export class SentrySpan implements Span {
223222
* use `spanToJSON(span)` instead.
224223
*/
225224
public getSpanJSON(): SpanJSON {
226-
return dropUndefinedKeys({
225+
return {
227226
data: this._attributes,
228227
description: this._name,
229228
op: this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP],
@@ -240,7 +239,7 @@ export class SentrySpan implements Span {
240239
is_segment: (this._isStandaloneSpan && getRootSpan(this) === this) || undefined,
241240
segment_id: this._isStandaloneSpan ? getRootSpan(this).spanContext().spanId : undefined,
242241
links: convertSpanLinksForEnvelope(this._links),
243-
});
242+
};
244243
}
245244

246245
/** @inheritdoc */

0 commit comments

Comments
 (0)