opentracing/opentracing-javascript

Inject and Extract with BINARY format

CHOMNANP opened this issue · 2 comments

I have tried and cannot manage to get the Inject and extract with Binary work across 2 node on microservice. The communication between service is using rabitMQ.

Can anyone help guild me how to get it done?

Please correct me, if I'm wrong: For me it looks like there is no logic behind the inject/extract functions.

// The default behavior is a no-op.
protected _inject(spanContext: SpanContext, format: string, carrier: any): void {
}
// The default behavior is to return a no-op SpanContext.
protected _extract(format: string, carrier: any): SpanContext | null {
return Noop.spanContext!;
}

I got a working way around with TEXT_MAP_FORMAT.
jaegertracing/jaeger-client-node#370

Thank.