Skip to content

Commit 2c96ffc

Browse files
committed
trace context never has a description
1 parent bb03a7e commit 2c96ffc

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/core/src/utils/spanUtils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ import { dropUndefinedKeys, generateSentryTraceHeader } from '@sentry/utils';
55
* Convert a span to a trace context, which can be sent as the `trace` context in an event.
66
*/
77
export function spanToTraceContext(span: Span): TraceContext {
8-
const { data, description, op, parent_span_id, span_id, status, tags, trace_id, origin } = span.toJSON();
8+
const { data, op, parent_span_id, span_id, status, tags, trace_id, origin } = span.toJSON();
99

1010
return dropUndefinedKeys({
1111
data,
12-
description,
1312
op,
1413
parent_span_id,
1514
span_id,

packages/types/src/context.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export interface ResponseContext extends Record<string, unknown> {
9595

9696
export interface TraceContext extends Record<string, unknown> {
9797
data?: { [key: string]: any };
98-
description?: string;
9998
op?: string;
10099
parent_span_id?: string;
101100
span_id: string;

0 commit comments

Comments
 (0)