cassandra-zipkin-tracing icon indicating copy to clipboard operation
cassandra-zipkin-tracing copied to clipboard

invalid CustomPayload: Python Cassandra Driver

Open nicholasamorim opened this issue 7 years ago • 1 comments

Hi, I'm trying to integrate this with the Python cassandra driver.

Cassandra is sending its tracing stats to Jaeger, all good. But I can't seem to be able to generate a proper custom payload, my C* logs keep showing: ZipkinTracing.java:107 - invalid customPayload in zipkin

Could anyone help me in this?

At first, I tried:

bin_carrier = bytearray()
tracer.inject(scope.span.context, Format.BINARY, bin_carrier)

But the resulting bytearray (bin_carrier) seems to be always empty.

Then I tried sending the uber-trace-id that Format.TEXT_MAP provides but the payload is invalid.

What should be the format of the payload for cassandra-zipkin-tracing?

nicholasamorim avatar Dec 04 '18 12:12 nicholasamorim

The ZIPKIN_TRACE_HEADERS is expected to be a byte array must be of length: 16 == length || 24 == length || 32 == length, for example a serialised SpanId.

michaelsembwever avatar Dec 04 '18 23:12 michaelsembwever