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

Cannot find service name in Zipkin span #337

Closed
pavolloffay opened this issue Aug 15, 2017 · 2 comments
Closed

Cannot find service name in Zipkin span #337

pavolloffay opened this issue Aug 15, 2017 · 2 comments

Comments

@pavolloffay
Copy link
Member

pavolloffay commented Aug 15, 2017

When testing #334 I discovered that brave (or maybe any zipkin instrumentation) can send span with just one binary annotation

 {  
      "traceId":"549d6e48d3a5bfcbe4a4fbc1284ff98b",
      "id":"b5e1ead09289b182",
      "name":"",
      "parentId":"e4a4fbc1284ff98b",
      "binaryAnnotations":[  
         {  
            "key":"http.status_code",
            "value":"200",
            "endpoint":{  
               "serviceName":"spring-boot",
               "ipv4":"10.43.17.27"
            }
         }
      ]
   }

trace: https://paste.fedoraproject.org/paste/4iUxY0cOkfGpz5jQj-K-lA

It results in Cannot find service name in Zipkin span [traceID=e4a4fbc1284ff98b, spanID=b5e1ead09289b182] https://github.com/uber/jaeger/blob/79fba1278743840dff6b84aa059ec58f7ec21a0a/model/converter/thrift/zipkin/to_domain.go#L161-L182

screenshot of jaeger ui

Reproducer:
https://github.com/pavolloffay/opentracing-java-examples/tree/jaeger-unknown-service-error-and-ui-issues
run spring-boot and curl localhost:8080/chaining, Note that it's not deterministic.

@yurishkuro
Copy link
Member

yeah, the code checks for service name AND ipv4 being defined, I think the IP should be optional. Having said that, the above JSON seems to have ipv4, so not sure why it's not working.

@pavolloffay
Copy link
Member Author

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