Closed prsh9 closed 4 years ago
TextMapInjectAdapter cannot be used in the tracer.inject() API as the current implementation of TextMapInjectAdapter does not implement TextMap. https://github.com/opentracing/opentracing-java/blob/master/opentracing-api/src/main/java/io/opentracing/propagation/TextMapInjectAdapter.java#L30 As seen in the implementation TextMapInjectAdapter implements TextMapInject but it does not implement TextMap in the hierarchy
tracer.inject()
TextMapInjectAdapter implements TextMapInject
TextMap
Maybe this helps:
extract(TEXT_MAP)
inject(TEXT_MAP)
extract(TEXT_MAP_EXTRACT)
inject(TEXT_MAP_INJECT)
TextMapAdapter
TextMapExtractAdapter
TextMapInjectAdapter
TextMapInjectAdapter cannot be used in the
tracer.inject()
API as the current implementation of TextMapInjectAdapter does not implement TextMap. https://github.com/opentracing/opentracing-java/blob/master/opentracing-api/src/main/java/io/opentracing/propagation/TextMapInjectAdapter.java#L30 As seen in the implementationTextMapInjectAdapter implements TextMapInject
but it does not implementTextMap
in the hierarchy