yurishkuro / opentracing-tutorial

A collection of tutorials for the OpenTracing API
Apache License 2.0
1.57k stars 404 forks source link

Node.js Lesson 2 code does not produce multiple spans #31

Open veryscarycary opened 6 years ago

veryscarycary commented 6 years ago

After working through the lesson and then adapting the solution's code over my own, it seems that multiple spans are not produced from the code in lesson 2. I don't know exactly why but I wanted to surface the issue here.

Screenshots

image

image

yurishkuro commented 5 years ago

The tutorial itself seems to work fine:

$ node lesson02/solution/hello.js multipleSpans
INFO  Initializing Jaeger Tracer with CompositeReporter and ConstSampler
INFO  Reporting span e96f5c1d827792aa:e18d43177920e4d:e96f5c1d827792aa:1
Hello, multipleSpans!
INFO  Reporting span e96f5c1d827792aa:35ea28684bf3326d:e96f5c1d827792aa:1
INFO  Reporting span e96f5c1d827792aa:e96f5c1d827792aa:0:1

Are you seeing a different result? It was not clear if the screenshots were from a different code.