|
1 | 1 | import type { |
2 | | - Primitive, |
3 | 2 | Span, |
4 | 3 | SpanAttributeValue, |
5 | 4 | SpanAttributes, |
@@ -65,12 +64,6 @@ export class SpanRecorder { |
65 | 64 | * Span contains all data about a span |
66 | 65 | */ |
67 | 66 | export class SentrySpan implements Span { |
68 | | - /** |
69 | | - * Tags for the span. |
70 | | - * @deprecated Use `spanToJSON(span).atttributes` instead. |
71 | | - */ |
72 | | - public tags: { [key: string]: Primitive }; |
73 | | - |
74 | 67 | /** |
75 | 68 | * Data for the span. |
76 | 69 | * @deprecated Use `spanToJSON(span).atttributes` instead. |
@@ -117,8 +110,6 @@ export class SentrySpan implements Span { |
117 | 110 | this._spanId = spanContext.spanId || uuid4().substring(16); |
118 | 111 | this._startTime = spanContext.startTimestamp || timestampInSeconds(); |
119 | 112 | // eslint-disable-next-line deprecation/deprecation |
120 | | - this.tags = spanContext.tags ? { ...spanContext.tags } : {}; |
121 | | - // eslint-disable-next-line deprecation/deprecation |
122 | 113 | this.data = spanContext.data ? { ...spanContext.data } : {}; |
123 | 114 |
|
124 | 115 | this._attributes = {}; |
@@ -328,21 +319,6 @@ export class SentrySpan implements Span { |
328 | 319 | return childSpan; |
329 | 320 | } |
330 | 321 |
|
331 | | - /** |
332 | | - * Sets the tag attribute on the current span. |
333 | | - * |
334 | | - * Can also be used to unset a tag, by passing `undefined`. |
335 | | - * |
336 | | - * @param key Tag key |
337 | | - * @param value Tag value |
338 | | - * @deprecated Use `setAttribute()` instead. |
339 | | - */ |
340 | | - public setTag(key: string, value: Primitive): this { |
341 | | - // eslint-disable-next-line deprecation/deprecation |
342 | | - this.tags = { ...this.tags, [key]: value }; |
343 | | - return this; |
344 | | - } |
345 | | - |
346 | 322 | /** |
347 | 323 | * Sets the data attribute on the current span |
348 | 324 | * @param key Data key |
@@ -439,8 +415,6 @@ export class SentrySpan implements Span { |
439 | 415 | spanId: this._spanId, |
440 | 416 | startTimestamp: this._startTime, |
441 | 417 | status: this._status, |
442 | | - // eslint-disable-next-line deprecation/deprecation |
443 | | - tags: this.tags, |
444 | 418 | traceId: this._traceId, |
445 | 419 | }); |
446 | 420 | } |
@@ -471,8 +445,6 @@ export class SentrySpan implements Span { |
471 | 445 | span_id: this._spanId, |
472 | 446 | start_timestamp: this._startTime, |
473 | 447 | status: getStatusMessage(this._status), |
474 | | - // eslint-disable-next-line deprecation/deprecation |
475 | | - tags: Object.keys(this.tags).length > 0 ? this.tags : undefined, |
476 | 448 | timestamp: this._endTime, |
477 | 449 | trace_id: this._traceId, |
478 | 450 | origin: this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN] as SpanOrigin | undefined, |
|
0 commit comments