Skip to content

Cannot find service name in Zipkin span #337

@pavolloffay

Description

@pavolloffay

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions