11/* eslint-disable max-lines */
2- import { Span as SpanInterface , SpanContext , Transaction } from '@sentry/types' ;
2+ import { Primitive , Span as SpanInterface , SpanContext , Transaction } from '@sentry/types' ;
33import { dropUndefinedKeys , timestampWithMs , uuid4 } from '@sentry/utils' ;
44
55import { SpanStatus } from './spanstatus' ;
@@ -86,7 +86,7 @@ export class Span implements SpanInterface {
8686 /**
8787 * @inheritDoc
8888 */
89- public tags : { [ key : string ] : string | number | boolean | undefined } = { } ;
89+ public tags : { [ key : string ] : Primitive } = { } ;
9090
9191 /**
9292 * @inheritDoc
@@ -187,7 +187,7 @@ export class Span implements SpanInterface {
187187 /**
188188 * @inheritDoc
189189 */
190- public setTag ( key : string , value : string | number | boolean | undefined ) : this {
190+ public setTag ( key : string , value : Primitive ) : this {
191191 this . tags = { ...this . tags , [ key ] : value } ;
192192 return this ;
193193 }
@@ -257,7 +257,7 @@ export class Span implements SpanInterface {
257257 parent_span_id ?: string ;
258258 span_id : string ;
259259 status ?: string ;
260- tags ?: { [ key : string ] : string | number | boolean | undefined } ;
260+ tags ?: { [ key : string ] : Primitive } ;
261261 trace_id : string ;
262262 } {
263263 return dropUndefinedKeys ( {
@@ -284,7 +284,7 @@ export class Span implements SpanInterface {
284284 span_id : string ;
285285 start_timestamp : number ;
286286 status ?: string ;
287- tags ?: { [ key : string ] : string | number | boolean | undefined } ;
287+ tags ?: { [ key : string ] : Primitive } ;
288288 timestamp ?: number ;
289289 trace_id : string ;
290290 } {
0 commit comments