opentracing/opentracing-javascript

Span tag values should be `string`s, `boolean`s or `number`s

chpio opened this issue · 2 comments

chpio commented

Hi,

A set of zero or more key:value Span Tags. The keys must be strings. The values may be strings, bools, or numeric types.

-- https://github.com/opentracing/specification/blob/master/specification.md

Expected

Span tag values should have a string | boolean | number type.

Actual

Span tag values have the any type.

setTag(key: string, value: any): this {


Or does "The values may be [...]" imply any type, although string | boolean | number should be used in most cases?

Hi, I would like to work on this issue, is it available?

This library is deprecated