w3c / baggage

Propagation format for distributed context: Baggage
https://w3c.github.io/baggage/
Other
48 stars 18 forks source link

Support for a type property of a Correlation Context value #3

Closed SergeyKanzhelev closed 4 years ago

SergeyKanzhelev commented 5 years ago

Copy from https://github.com/w3c/trace-context/issues/22

Some tracing vendors support types for the context properties. We can add type property to allow an explicit type specification. Something like this:

Boolean

Binary flag. Supported values 1 for true and 0 for false.

Examples:

IsAuthenticated=1;type=bool
IsAuthenticated=0;type=bool

Number

Numeric value as described in IEEE 754-2008 binary64 (double precision) numbers IEEE754.

Examples:

ExposurePercentage=33.33;type=number
Step=10;type=number
yurishkuro commented 5 years ago

I would avoid strong types. HTTP headers themselves don't have types, what is special about correlation context that requires types?

SergeyKanzhelev commented 4 years ago

It was discussed today at workshop and there were no scenarios suggested that would require protocol to support types. Let's re-open when the feature will be requested