Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid CustomPayload: Python Cassandra Driver #8

Open
nicholasamorim opened this issue Dec 4, 2018 · 1 comment
Open

invalid CustomPayload: Python Cassandra Driver #8

nicholasamorim opened this issue Dec 4, 2018 · 1 comment

Comments

@nicholasamorim
Copy link

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?

@michaelsembwever
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants