public class BinaryFormater extends Object implements RegistryExtractorInjector<ByteBuffer>
注意:只支持堆内存不支持堆外内存
FORMATER_KEY_HEAD| 构造器和说明 |
|---|
BinaryFormater() |
| 限定符和类型 | 方法和说明 |
|---|---|
SofaTracerSpanContext |
extract(ByteBuffer carrier)
从负载中提取出 Span 上下文
|
io.opentracing.propagation.Format<ByteBuffer> |
getFormatType()
获取支持的格式类型
|
void |
inject(SofaTracerSpanContext spanContext,
ByteBuffer carrier)
向负载中注入 Span 上下文
|
public io.opentracing.propagation.Format<ByteBuffer> getFormatType()
RegistryExtractorInjectorgetFormatType 在接口中 RegistryExtractorInjector<ByteBuffer>Formatpublic SofaTracerSpanContext extract(ByteBuffer carrier)
RegistryExtractorInjectorextract 在接口中 RegistryExtractorInjector<ByteBuffer>carrier - 负载public void inject(SofaTracerSpanContext spanContext, ByteBuffer carrier)
RegistryExtractorInjectorinject 在接口中 RegistryExtractorInjector<ByteBuffer>spanContext - 要注入或者序列化的 span 上下文carrier - 负载Copyright © 2018 Pivotal Software, Inc.. All rights reserved.