extract method on InstanaTracer class, is always returning null, from what I observe when I debug my code, and when going thru the code of this project.
Because of that null is returned.
I would expect toTraceId to return trace id from baggageItems, which are extracted from Instana headers x-instana-....
extract
method on InstanaTracer class, is always returning null, from what I observe when I debug my code, and when going thru the code of this project.What I checked:
extract
method is callingextractContext
, which will returnTextMapContext
forFormat.Builtin.TEXT_MAP_EXTRACT
. https://github.com/instana/instana-java-opentracing/blob/81272deebbdfaef87a159f3486c66d0e947e1589/src/main/java/com/instana/opentracing/InstanaTracer.java#L126Then call for
toTraceId
on TextMapContext https://github.com/instana/instana-java-opentracing/blob/81272deebbdfaef87a159f3486c66d0e947e1589/src/main/java/com/instana/opentracing/InstanaTracer.java#L127will return
""
. https://github.com/instana/instana-java-opentracing/blob/81272deebbdfaef87a159f3486c66d0e947e1589/src/main/java/com/instana/opentracing/TextMapContext.java#L34Because of that null is returned. I would expect
toTraceId
to return trace id frombaggageItems
, which are extracted from Instana headersx-instana-...
.