-
Notifications
You must be signed in to change notification settings - Fork 171
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
Cujojs/REST - Spans not being sent to zipkin #32
Comments
Can you change to ConsoleRecorder and paste the results of that? On Wed, Aug 17, 2016 at 5:47 PM, Janusz Piechówka notifications@github.com
|
@adriancole Sure!
|
ok well that looks fine.. is there any error in the zipkin-server log or On Wed, Aug 17, 2016 at 6:08 PM, Janusz Piechówka notifications@github.com
|
There were no errors on the console.
This is what is after I made a request:
|
@adriancole This is the server code I wrote in Spark Java very fast without proper error handling, hardcoded spanId for now:
Right now only server span is sent to zipkin, and I can see it in the UI. |
stuck on something else at the moment. can you verify that if you run my If you can't see spans in zipkin running my branch as-is, maybe it is openzipkin/zipkin-js-example#1 On Wed, Aug 17, 2016 at 6:53 PM, Janusz Piechówka notifications@github.com
|
basically if you can get an example project (not just a snippet), ex in a If you can make a quick node server that calls youtube or something, I On Wed, Aug 17, 2016 at 9:11 PM, Adrian Cole adrian.f.cole@gmail.com
|
Thanks, I will create an example project when I am at home in a couple of hours. |
Had the same problem today with HttpLogger. What I found was that my process terminated before the Logger could send the requests to zipkin. Just to check if this is there problem here too, you can quickly add a timeout like this to your code to let the process wait 5 seconds before exiting so the requests can be send: setTimeout(function () {
console.log('timeout');
}, 5000); I've already created a ticket to check why this is done in the Logger. You can check the status here: #33 |
I do think this is the same issue as #33. I'm currently using this recorder with Restify, which keeps the server up anyway so it can handle requests, so I haven't run into this yet. |
@ocastx Your solution works, this helped
|
@jpiechowka Be sure to follow #33 because the 5 sec. should not be a permanent fix for the problem. |
@ocastx I have subscribed already. Make sure to format your links correctly, so they don't point to 404 page like right now :D |
@adriancole this https://github.com/hawkular/hawkular-apm/blob/master/examples/polyglot-zipkin/js-express/app.js#L93 can be used as a reproducer. |
@jpiechowka I know this issue is old based on what I read and my own experience, this could have been fixed with last fixes from @adriancole (check version 0.18.6). Would you be able to try again with that version? |
Closing it due to inactivity and #375 |
I am making proof of concept client - server app with tracing via zipkin. The problem is spans are not being sent to Zipkin running on localhost when im using Cujojs/REST instrumentation. I can make request to my server (running on
http://localhost:9999
) and I can properly read Zipkin headers on the server. This is my Js client code:The text was updated successfully, but these errors were encountered: