@@ -104,43 +104,43 @@ export interface SpanContext {
104
104
*
105
105
* @deprecated Use `name` instead.
106
106
*/
107
- description ?: string ;
107
+ description ?: string | undefined ;
108
108
109
109
/**
110
110
* Human-readable identifier for the span. Alias for span.description.
111
111
*/
112
- name ?: string ;
112
+ name ?: string | undefined ;
113
113
114
114
/**
115
115
* Operation of the Span.
116
116
*/
117
- op ?: string ;
117
+ op ?: string | undefined ;
118
118
119
119
/**
120
120
* Completion status of the Span.
121
121
* See: {@sentry /tracing SpanStatus} for possible values
122
122
*/
123
- status ?: string ;
123
+ status ?: string | undefined ;
124
124
125
125
/**
126
126
* Parent Span ID
127
127
*/
128
- parentSpanId ?: string ;
128
+ parentSpanId ?: string | undefined ;
129
129
130
130
/**
131
131
* Was this span chosen to be sent as part of the sample?
132
132
*/
133
- sampled ?: boolean ;
133
+ sampled ?: boolean | undefined ;
134
134
135
135
/**
136
136
* Span ID
137
137
*/
138
- spanId ?: string ;
138
+ spanId ?: string | undefined ;
139
139
140
140
/**
141
141
* Trace ID
142
142
*/
143
- traceId ?: string ;
143
+ traceId ?: string | undefined ;
144
144
145
145
/**
146
146
* Tags of the Span.
@@ -162,22 +162,22 @@ export interface SpanContext {
162
162
/**
163
163
* Timestamp in seconds (epoch time) indicating when the span started.
164
164
*/
165
- startTimestamp ?: number ;
165
+ startTimestamp ?: number | undefined ;
166
166
167
167
/**
168
168
* Timestamp in seconds (epoch time) indicating when the span ended.
169
169
*/
170
- endTimestamp ?: number ;
170
+ endTimestamp ?: number | undefined ;
171
171
172
172
/**
173
173
* The instrumenter that created this span.
174
174
*/
175
- instrumenter ?: Instrumenter ;
175
+ instrumenter ?: Instrumenter | undefined ;
176
176
177
177
/**
178
178
* The origin of the span, giving context about what created the span.
179
179
*/
180
- origin ?: SpanOrigin ;
180
+ origin ?: SpanOrigin | undefined ;
181
181
}
182
182
183
183
/** Span holding trace_id, span_id */
@@ -194,7 +194,7 @@ export interface Span extends Omit<SpanContext, 'op' | 'status' | 'origin'> {
194
194
* @deprecated Use `startSpan()` functions to set, `span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_OP, 'op')
195
195
* to update and `spanToJSON().op` to read the op instead
196
196
*/
197
- op ?: string ;
197
+ op ?: string | undefined ;
198
198
199
199
/**
200
200
* The ID of the span.
@@ -207,7 +207,7 @@ export interface Span extends Omit<SpanContext, 'op' | 'status' | 'origin'> {
207
207
*
208
208
* @deprecated Use `spanToJSON(span).parent_span_id` instead.
209
209
*/
210
- parentSpanId ?: string ;
210
+ parentSpanId ?: string | undefined ;
211
211
212
212
/**
213
213
* The ID of the trace.
@@ -219,7 +219,7 @@ export interface Span extends Omit<SpanContext, 'op' | 'status' | 'origin'> {
219
219
* Was this span chosen to be sent as part of the sample?
220
220
* @deprecated Use `isRecording()` instead.
221
221
*/
222
- sampled ?: boolean ;
222
+ sampled ?: boolean | undefined ;
223
223
224
224
/**
225
225
* Timestamp in seconds (epoch time) indicating when the span started.
@@ -231,7 +231,7 @@ export interface Span extends Omit<SpanContext, 'op' | 'status' | 'origin'> {
231
231
* Timestamp in seconds (epoch time) indicating when the span ended.
232
232
* @deprecated Use `spanToJSON()` instead.
233
233
*/
234
- endTimestamp ?: number ;
234
+ endTimestamp ?: number | undefined ;
235
235
236
236
/**
237
237
* Tags for the span.
@@ -271,14 +271,14 @@ export interface Span extends Omit<SpanContext, 'op' | 'status' | 'origin'> {
271
271
*
272
272
* @deprecated Use `.setStatus` to set or update and `spanToJSON()` to read the status.
273
273
*/
274
- status ?: string ;
274
+ status ?: string | undefined ;
275
275
276
276
/**
277
277
* The origin of the span, giving context about what created the span.
278
278
*
279
279
* @deprecated Use `startSpan` function to set and `spanToJSON(span).origin` to read the origin instead.
280
280
*/
281
- origin ?: SpanOrigin ;
281
+ origin ?: SpanOrigin | undefined ;
282
282
283
283
/**
284
284
* Get context data for this span.
0 commit comments