m-lab / traceroute-caller

A sidecar service which runs traceroute after a connection closes
Apache License 2.0
18 stars 5 forks source link

Traceroute Scamper .json should not have double quotes #76

Closed yachang closed 4 years ago

yachang commented 4 years ago

The current sample output using "cat" is:

{"schema_version":"\"1\"","uuid":"\"ndt-cbppg_1589996412_000000000000A94A\"","testtime":"0001-01-01T00:00:00Z","start_time":1590086579,"stop_time":1590086579,"scamper_version":"\"0.1\"","serverIP":"\"4.14.159.101\"","clientIP":"\"4.14.159.86\"","probe_size":44,"probec":1,"hop":null,"cached_result":true,"cached_uuid":"\"ndt-cbppg_1589996412_000000000000A689\"","traceroutecaller_commit":"\"608d1a7\""}

The code in tracer/scamper.go use

json.Marshal ioutil.WriteFile

To create the .json file

yachang commented 4 years ago

Fixed by https://github.com/m-lab/traceroute-caller/pull/77