-
Notifications
You must be signed in to change notification settings - Fork 126
Traces not showing up in jaeger. #14
Comments
this might be a sign of the wrong timestamps emitted by C++ client. Jaeger thrift defines timestamps as microseconds since epoch. If they are not scaled appropriately, then the search may be mismatching on the time range. |
I had this issue before with @bcherukuri. It had been an issue in the client usage of system_time vs. steady_time. That was already addressed and we got traces. I'll try your example locally and get back to you. |
Found your issue. Relates to opentracing/opentracing-cpp#29. Try setting timestamps manually and see the results. |
Regardless, I somehow get the spans using your code locally. |
Yes, it I see them if I manually set the timestamps. It looks like Jaeger is missing logic like this to set the timestamps if they're default constructed. |
do you mean the backend? Timestamps must be set by the tracer impl. |
But I ran your example and it worked. Are you sure it is not something I fixed recently? |
I mean the client library. The equivalent of what's done here in the go tracer. |
I'm also not sure why the convenience method |
Isn't that what you complained about in this issue: opentracing/opentracing-cpp#29. But regardless of whether StartSpan sets the timestamps or not you should be able to call StartSpanWithOptions using default constructed timestamps and have the tracer determine the times for you. That's the behavior in Go as well. |
It is the same issue indeed. My only qualm with the comparison with Go is that Go uses |
I'm running this small c++ program (matching the go quickstart example).
If I start the Jaeger's docker server
it shows the service name "wherearemyspans?" (so the server received something); but if I try to find traces, I don't see anything.
Running the go example, the spans show up all the time.
Any idea what could be going on?
The text was updated successfully, but these errors were encountered: