见 https://zipkin.io/zipkin-api/#/default/post_spans


curl -X POST -s localhost:9411/api/v2/spans -H'Content-Type: application/json' -d'[{
  "traceId": "5345234523452243", 
  "id": "5345234523452243",
  "name": "login",
  "timestamp": 1612145253678001,
  "duration": 1000,
  "localEndpoint": {
    "serviceName": "chat"
  },
  "remoteEndpoint": {
    "serviceName": "shop"
  },
  "tags": {
    "param": "{\"test\":1,\"endter\":2}",
    "return": "100"
  }
}]'

curl -X POST -s localhost:9411/api/v2/spans -H'Content-Type: application/json' -d'[{
  "traceId": "5345234523452243", 
  "id": "5345234523452244",
  "parentId": "5345234523452243",
  "name": "set",
  "timestamp": 1612145353678001,
  "duration": 1000,
  "localEndpoint": {
    "serviceName": "dbdata"
  },
  "remoteEndpoint": {
    "serviceName": "chat"
  },
  "tags": {
    "param": "{\"test\":1,\"endter\":2}",
    "return": "100"
  }
}]'

curl -X POST -s localhost:9411/api/v2/spans -H'Content-Type: application/json' -d'[{
  "traceId": "5345234523452246", 
  "id": "5345234523452246",
  "name": "set",
  "timestamp": 1612406723000000,
  "duration": 1000,
  "localEndpoint": {
    "serviceName": "locker"
  },
  "remoteEndpoint": {
    "serviceName": "chat"
  },
  "tags": {
    "param": "{\"test\":1,\"endter\":2}",
    "return": 100
  }
}]'



curl -X POST -s localhost:9411/api/v2/spans -H'Content-Type: application/json' -d'[{
  "traceId": "5345234523452243", 
  "id": "5345234523452246",
  "parentId": "5345234523452245",
  "name": "set",
  "timestamp": 1612145353678001,
  "duration": 1000,
  "localEndpoint": {
    "serviceName": "global"
  },
  "tags": {
    "param": "{\"test\":1,\"endter\":2}",
    "return": "100"
  },
  "annotations":[{
    "param": {"name":1,"age":2},
    "return": 100}
  ]
}]'

curl -X POST -s localhost:9411/api/v2/spans -H'Content-Type: application/json' -d'[{
  "traceId": "5345234523452243", 
  "id": "5345234523452247",
  "parentId": "5345234523452245",
  "name": "set",
  "timestamp": 1612145353678001,
  "duration": 1000,
  "localEndpoint": {
    "serviceName": "dbdata",
  },
  "tags": {
    "param": "{\"test\":1,\"endter\":2}",
    "return": "100"
  }
}]'
