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

zipkin v2 span格式错误 #116

Open
ljx211520 opened this issue Dec 5, 2018 · 1 comment
Open

zipkin v2 span格式错误 #116

ljx211520 opened this issue Dec 5, 2018 · 1 comment
Projects

Comments

@ljx211520
Copy link

ljx211520 commented Dec 5, 2018

官网给的span格式是:
[{"id":"c74c9ec8df3438ef","name":"parse_request","traceId":"c74c9ec8df3438ef","parentId":null,"timestamp":1544001763263682,"duration":997908,"debug":false,"localEndpoint":{"serviceName":"frontend","ipv4":"127.0.0.1","port":2555},"kind":"SERVER"},{"id":"8b2d97e3845a8553","name":"users:get_list","traceId":"c74c9ec8df3438ef","parentId":"c74c9ec8df3438ef","timestamp":1544001763271961,"duration":989222,"debug":false,"localEndpoint":{"serviceName":"frontend","ipv4":"127.0.0.1","port":2555},"kind":"CLIENT","annotations":[{"value":"request_started","timestamp":1544001763386374},{"value":"request_finished","timestamp":1544001764260415}]}]

扩展返回的span格式是:
[{"traceId":"14107ba10ab393fa","name":"file_put_contents","version":"php-4","kind":"CLIENT","id":"806bdf8a1c3cd035","parentId":"380feb49a11d4e4c","timestampMicros":1543998288769505,"durationMicros":691,"localEndpoint":{"serviceName":"file_put_contents","ipv4":"127.0.0.1"},"remoteEndpoint":[],"tags":{"file.path":"/Users/abc/wwwroot/test/molten.log"}},{"traceId":"14107ba10ab393fa","name":"cli","version":"php-4","kind":"SERVER","id":"380feb49a11d4e4c","timestampMicros":1543998288763037,"durationMicros":7582,"localEndpoint":{"serviceName":"cli","ipv4":"127.0.0.1"},"remoteEndpoint":[],"tags":{"path":"/Users/looksky/wwwroot/test/response.php"}}]

timestamp和duration 参数名不一样,上报数据的时候报 Cannot decode spans

@silkcutKs
Copy link
Member

@ljx211520 官方的是v1 格式, 扩展中v2格式进行设置的。

@silkcutKs silkcutKs added this to 新ZIPKIN格式支持 in Fix Problem Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Fix Problem
  
新ZIPKIN格式支持
Development

No branches or pull requests

2 participants