Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Logs translation when SpanTranslator is at FINE/DEBUG level (#73)
We've had a number of support issues around translation. This adds debug logging which can help determine the cause of failures. ``` 2018-04-09 13:51:19.279 DEBUG [/] 7295 --- [ XNIO-2 I/O-2] z.t.stackdriver.SpanTranslator : >> translating zipkin span: {"traceId":"e7d33ab8fe95b3cb","id":"e7d33ab8fe95b3cb","kind":"SERVER","name":"get /","timestamp":1523253078006004,"duration":158196,"localEndpoint":{"serviceName":"frontend","ipv4":"192.168.1.113"},"remoteEndpoint":{"ipv6":"::1","port":60162},"tags":{"http.method":"GET","http.path":"/","mvc.controller.class":"Frontend","mvc.controller.method":"callBackend"}} 2018-04-09 13:51:19.281 DEBUG [/] 7295 --- [ XNIO-2 I/O-2] z.t.stackdriver.SpanTranslator : << translated to stackdriver span: span_id: 16704760009066918859 kind: RPC_SERVER name: "get /" start_time { seconds: 1523253078 nanos: 6004000 } end_time { seconds: 1523253078 nanos: 164200000 } labels { key: "/http/method" value: "GET" } labels { key: "zipkin.io/http.path" value: "/" } labels { key: "zipkin.io/mvc.controller.class" value: "Frontend" } labels { key: "zipkin.io/mvc.controller.method" value: "callBackend" } labels { key: "zipkin.io/endpoint.ipv4" value: "192.168.1.113" } labels { key: "/component" value: "frontend" } labels { key: "/agent" value: "zipkin-java" } ```
- Loading branch information