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

Binary injection failed #4

Open
gy1005 opened this issue Mar 21, 2019 · 3 comments
Open

Binary injection failed #4

gy1005 opened this issue Mar 21, 2019 · 3 comments

Comments

@gy1005
Copy link

gy1005 commented Mar 21, 2019

It seemed that tracer:binary_inject() didn't inject the span context to the carrier when I replaced tracer:text_map_inject() function in the tutorial.lua with it. carrierturned out to be an empty string and span_context is nil. Any idea on that?

local carrier = tracer:binary_inject(parent_span:context())
local span_context = tracer:binary_extract(carrier)
assert(span_context ~= nil)
@gy1005
Copy link
Author

gy1005 commented Mar 21, 2019

While tracer:text_map_inject() and tracer:http_headers_inject() worked perfectly for me.

@rnburn
Copy link
Collaborator

rnburn commented Mar 21, 2019

Which tracer are you using?

@gy1005
Copy link
Author

gy1005 commented Mar 21, 2019

I am using Jaeger from https://github.com/jaegertracing/jaeger-client-cpp/releases/download/v0.4.2/libjaegertracing_plugin.linux_amd64.so.

And opentracing-cpp-1.5.1 built from source.

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