Extract null span context#81
Conversation
|
How did you got this warnings, show your step and code. |
|
Hm, to be honest, I cannot quite reproduce it with my setup anymore. Maybe it was a caching condition on my side. |
|
Any news on this? Should anything else be changed? |
|
I should know how to reproduce this. if not, I don't know how to handle it. |
|
Ok, it seems that another bug in my test application actually created that warning in jaeger, sorry for that misunderstanding! So this PR is not about a bugfix, but about the exact implementation of the opentracing specification. Having this in mind, do you have any ideas on improving this PR? |
del md5
del function getMD5
|
I use other way to detect when to return null, you can review the change with your branch. |
|
I like that solution more than mine, that is fine for me 👍 |
According to the opentracing specification,
nullmay be returned instead of aSpanContextbyTracer->extract(). This PR adds this behaviour and prevents ugly warnings in Jaeger, which complains about invalid span references: