Closed JackGzj closed 5 years ago
please watch https://github.com/envoyproxy/envoy/issues/4839 we don't support readback of zipkin v1 format. envoy, which is used by istio, will hopefully update their zipkin support soon. @zyfjeff volunteered to fix this long term problem
I am using Zipkin to collect and elasticsearch to storage the spans data from istio, and I got all the spans like
{ "traceId":"eed83ac8d4600f9c", "duration":67707, "shared":true, "localEndpoint":{ "serviceName":"productpage", "ipv4":"172.20.6.36" }, "timestamp_millis":1544795370656, "kind":"SERVER", "name":"productpage.bookinfo.svc.cluster.local:9080/productpage", "id":"eed83ac8d4600f9c", "timestamp":1544795370656902, "tags":{ "component":"proxy", "downstream_cluster":"-", "guid:x-request-id":"7d0e9225-6b06-922e-9045-d81c80b69ea4", "http.method":"GET", "http.protocol":"HTTP/1.1", "http.status_code":"200", "http.url":"http://192.168.199.165:31380/productpage", "node_id":"sidecar~172.20.6.36~productpage-v1-b4776948-9vh8b.bookinfo~bookinfo.svc.cluster.local", "request_size":"0", "response_flags":"-", "response_size":"4541", "upstream_cluster":"inbound|9080||productpage.bookinfo.svc.cluster.local", "user_agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36" } } }
However we I view the JSON in the UI, I got{ "traceId": "5f9e5a7f948f5915", "id": "5f9e5a7f948f5915", "name": "productpage.bookinfo.svc.cluster.local:9080/productpage", "timestamp": 1544795430145279, "duration": 90012, "annotations": [ { "timestamp": 1544795430145279, "value": "sr", "endpoint": { "serviceName": "productpage", "ipv4": "172.20.6.36" } }, { "timestamp": 1544795430235291, "value": "ss", "endpoint": { "serviceName": "productpage", "ipv4": "172.20.6.36" } } ], "binaryAnnotations": [ { "key": "component", "value": "proxy", "endpoint": { "serviceName": "productpage", "ipv4": "172.20.6.36" } }, { "key": "downstream_cluster", "value": "-", "endpoint": { "serviceName": "productpage", "ipv4": "172.20.6.36" } }, { "key": "guid:x-request-id", "value": "0103aa6a-6f96-92bf-b569-eeb43ca8be90", "endpoint": { "serviceName": "productpage", "ipv4": "172.20.6.36" } }, { "key": "http.method", "value": "GET", "endpoint": { "serviceName": "productpage", "ipv4": "172.20.6.36" } }
From the data I know they may be the same, but for the code analyze I hope to get the raw data as 'ss cr cs sr' format. I tried both version 2.7 and 1.31 but I got the same data. Is there any configuration that I could get span data in the format I want?