Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

How can I get the 'ss cr cs sr' format of span data? #195

Closed
JackGzj opened this issue Dec 14, 2018 · 1 comment
Closed

How can I get the 'ss cr cs sr' format of span data? #195

JackGzj opened this issue Dec 14, 2018 · 1 comment

Comments

@JackGzj
Copy link

JackGzj commented Dec 14, 2018

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?

@codefromthecrypt
Copy link

please watch envoyproxy/envoy#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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants