You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a workaround, I tried creating my own ToHeaders but I was unable to do so, as the TraceId case class constructor is private. There's an apply Method: apply: Option[TraceId] that will give you None if the size is not 16
Thanks @rodmeneses, I think we may still need to make this 16 bytes for some of the downstream exporter implementations. I can check after the 0.14 release.
In the meantime could you try padding the remaining 8bytes? Hopefully that doesn't break the rest of your tracing sytem
When trying to use
ToHeaders.B3
, which is based on theX-B3-TraceId
headers, the code is assuming that the traceId size must be 16 bytes.The current X-B3-TraceId spec, clearly says that both 8 bytes and 16 bytes size are valid: https://github.com/openzipkin/b3-propagation#traceid
As a workaround, I tried creating my own
ToHeaders
but I was unable to do so, as theTraceId
case class constructor is private. There's an apply Method:apply: Option[TraceId]
that will give youNone
if the size is not 16where
size
is initialized at16
on theTraceId
objectI think that
implementation should allow using
TraceId
of 8 bytes as well of 16 bytesThe text was updated successfully, but these errors were encountered: