Created
March 25, 2019 11:36
-
-
Save benhoIIand/d7d75e0b99e12e110e993ea8db69500e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"response": { | |
"config": { | |
"headers": { | |
"Accept-Encoding": "gzip", | |
"User-Agent": "google-api-nodejs-client/0.7.2 (gzip)", | |
"Authorization": "Bearer AUTHENTICATED_BEARER_TOKEN", | |
"Content-Type": "application/json", | |
"Accept": "application/json" | |
}, | |
"url": "https://cloudtrace.googleapis.com/v2/projects/project-name-here/traces:batchWrite", | |
"method": "POST", | |
"data": { | |
"spans": [ | |
{ | |
"name": "projects/project-name-here/traces/9b6997c2c8d345e1b5187e53659fa755/spans/53230f6ca6f6ab08", | |
"spanId": "53230f6ca6f6ab08", | |
"displayName": { | |
"value": "/url" | |
}, | |
"startTime": "2019-03-25T10:12:16.439Z", | |
"endTime": "2019-03-25T10:12:49.633Z", | |
"attributes": { | |
"attributeMap": { | |
"http.host": { | |
"stringValue": { | |
"value": "localhost" | |
} | |
}, | |
"http.method": { | |
"stringValue": { | |
"value": "GET" | |
} | |
}, | |
"http.path": { | |
"stringValue": { | |
"value": "/url" | |
} | |
}, | |
"http.route": { | |
"stringValue": { | |
"value": "/url" | |
} | |
}, | |
"http.user_agent": { | |
"stringValue": { | |
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36" | |
} | |
}, | |
"http.status_code": { | |
"stringValue": { | |
"value": "200" | |
} | |
}, | |
"g.co/agent": { | |
"stringValue": { | |
"value": "opencensus-node [0.0.9]" | |
} | |
} | |
}, | |
"droppedAttributesCount": 0 | |
}, | |
"timeEvents": { | |
"timeEvent": [ | |
{ | |
"time": "2019-03-25T10:12:48.107Z", | |
"messageEvent": { | |
"id": "78f514e909094a98804da597eb454ba7", | |
"type": 2 | |
} | |
} | |
], | |
"droppedAnnotationsCount": 0, | |
"droppedMessageEventsCount": 0 | |
}, | |
"links": { | |
"link": [], | |
"droppedLinksCount": 0 | |
}, | |
"status": { | |
"code": 0 | |
}, | |
"sameProcessAsParentSpan": true, | |
"childSpanCount": null, | |
"stackTrace": null | |
}, | |
{ | |
"name": "projects/project-name-here/traces/9b6997c2c8d345e1b5187e53659fa755/spans/b12c0bc6fb501bff", | |
"spanId": "b12c0bc6fb501bff", | |
"displayName": { | |
"value": "grpc.google.firestore.v1.Firestore/RunQuery" | |
}, | |
"startTime": "2019-03-25T10:12:18.447Z", | |
"endTime": "2019-03-25T10:12:38.521Z", | |
"attributes": { | |
"attributeMap": { | |
"grpc.method": { | |
"stringValue": { | |
"value": "/google.firestore.v1.Firestore/RunQuery" | |
} | |
}, | |
"grpc.kind": { | |
"intValue": "2" | |
}, | |
"grpc.status_code": { | |
"stringValue": { | |
"value": "0" | |
} | |
}, | |
"g.co/agent": { | |
"stringValue": { | |
"value": "opencensus-node [0.0.9]" | |
} | |
} | |
}, | |
"droppedAttributesCount": 0 | |
}, | |
"timeEvents": { | |
"timeEvent": [], | |
"droppedAnnotationsCount": 0, | |
"droppedMessageEventsCount": 0 | |
}, | |
"links": { | |
"link": [], | |
"droppedLinksCount": 0 | |
}, | |
"status": { | |
"code": 0 | |
}, | |
"sameProcessAsParentSpan": true, | |
"childSpanCount": null, | |
"stackTrace": null, | |
"parentSpanId": "53230f6ca6f6ab08" | |
} | |
] | |
}, | |
"params": {}, | |
"body": { | |
"spans": [ | |
{ | |
"name": "projects/project-name-here/traces/9b6997c2c8d345e1b5187e53659fa755/spans/53230f6ca6f6ab08", | |
"spanId": "53230f6ca6f6ab08", | |
"displayName": { | |
"value": "/url" | |
}, | |
"startTime": "2019-03-25T10:12:16.439Z", | |
"endTime": "2019-03-25T10:12:49.633Z", | |
"attributes": { | |
"attributeMap": { | |
"http.host": { | |
"stringValue": { | |
"value": "localhost" | |
} | |
}, | |
"http.method": { | |
"stringValue": { | |
"value": "GET" | |
} | |
}, | |
"http.path": { | |
"stringValue": { | |
"value": "/url" | |
} | |
}, | |
"http.route": { | |
"stringValue": { | |
"value": "/url" | |
} | |
}, | |
"http.user_agent": { | |
"stringValue": { | |
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36" | |
} | |
}, | |
"http.status_code": { | |
"stringValue": { | |
"value": "200" | |
} | |
}, | |
"g.co/agent": { | |
"stringValue": { | |
"value": "opencensus-node [0.0.9]" | |
} | |
} | |
}, | |
"droppedAttributesCount": 0 | |
}, | |
"timeEvents": { | |
"timeEvent": [ | |
{ | |
"time": "2019-03-25T10:12:48.107Z", | |
"messageEvent": { | |
"id": "78f514e909094a98804da597eb454ba7", | |
"type": 2 | |
} | |
} | |
], | |
"droppedAnnotationsCount": 0, | |
"droppedMessageEventsCount": 0 | |
}, | |
"links": { | |
"link": [], | |
"droppedLinksCount": 0 | |
}, | |
"status": { | |
"code": 0 | |
}, | |
"sameProcessAsParentSpan": true, | |
"childSpanCount": null, | |
"stackTrace": null | |
}, | |
{ | |
"name": "projects/project-name-here/traces/9b6997c2c8d345e1b5187e53659fa755/spans/b12c0bc6fb501bff", | |
"spanId": "b12c0bc6fb501bff", | |
"displayName": { | |
"value": "grpc.google.firestore.v1.Firestore/RunQuery" | |
}, | |
"startTime": "2019-03-25T10:12:18.447Z", | |
"endTime": "2019-03-25T10:12:38.521Z", | |
"attributes": { | |
"attributeMap": { | |
"grpc.method": { | |
"stringValue": { | |
"value": "/google.firestore.v1.Firestore/RunQuery" | |
} | |
}, | |
"grpc.kind": { | |
"intValue": "2" | |
}, | |
"grpc.status_code": { | |
"stringValue": { | |
"value": "0" | |
} | |
}, | |
"g.co/agent": { | |
"stringValue": { | |
"value": "opencensus-node [0.0.9]" | |
} | |
} | |
}, | |
"droppedAttributesCount": 0 | |
}, | |
"timeEvents": { | |
"timeEvent": [], | |
"droppedAnnotationsCount": 0, | |
"droppedMessageEventsCount": 0 | |
}, | |
"links": { | |
"link": [], | |
"droppedLinksCount": 0 | |
}, | |
"status": { | |
"code": 0 | |
}, | |
"sameProcessAsParentSpan": true, | |
"childSpanCount": null, | |
"stackTrace": null, | |
"parentSpanId": "53230f6ca6f6ab08" | |
} | |
] | |
}, | |
"responseType": "json" | |
}, | |
"data": { | |
"error": { | |
"code": 400, | |
"message": "Invalid value at 'spans[0].time_events.time_event[0].message_event.id' (TYPE_INT64), \"78f514e909094a98804da597eb454ba7\"", | |
"errors": [ | |
{ | |
"message": "Invalid value at 'spans[0].time_events.time_event[0].message_event.id' (TYPE_INT64), \"78f514e909094a98804da597eb454ba7\"", | |
"domain": "global", | |
"reason": "badRequest" | |
} | |
], | |
"status": "INVALID_ARGUMENT" | |
} | |
}, | |
"headers": { | |
"alt-svc": "quic=\":443\"; ma=2592000; v=\"46,44,43,39\"", | |
"cache-control": "private", | |
"connection": "close", | |
"content-encoding": "gzip", | |
"content-type": "application/json; charset=UTF-8", | |
"date": "Wed, 20 Mar 2019 17:13:09 GMT", | |
"server": "ESF", | |
"transfer-encoding": "chunked", | |
"vary": "Origin, X-Origin, Referer", | |
"x-content-type-options": "nosniff", | |
"x-frame-options": "SAMEORIGIN", | |
"x-xss-protection": "1; mode=block" | |
}, | |
"status": 400, | |
"statusText": "Bad Request" | |
}, | |
"config": { | |
"headers": { | |
"Accept-Encoding": "gzip", | |
"User-Agent": "google-api-nodejs-client/0.7.2 (gzip)", | |
"Authorization": "Bearer AUTHENTICATED_BEARER_TOKEN", | |
"Content-Type": "application/json", | |
"Accept": "application/json" | |
}, | |
"url": "https://cloudtrace.googleapis.com/v2/projects/project-name-here/traces:batchWrite", | |
"method": "POST", | |
"data": { | |
"spans": [ | |
{ | |
"name": "projects/project-name-here/traces/9b6997c2c8d345e1b5187e53659fa755/spans/53230f6ca6f6ab08", | |
"spanId": "53230f6ca6f6ab08", | |
"displayName": { | |
"value": "/url" | |
}, | |
"startTime": "2019-03-25T10:12:16.439Z", | |
"endTime": "2019-03-25T10:12:49.633Z", | |
"attributes": { | |
"attributeMap": { | |
"http.host": { | |
"stringValue": { | |
"value": "localhost" | |
} | |
}, | |
"http.method": { | |
"stringValue": { | |
"value": "GET" | |
} | |
}, | |
"http.path": { | |
"stringValue": { | |
"value": "/url" | |
} | |
}, | |
"http.route": { | |
"stringValue": { | |
"value": "/url" | |
} | |
}, | |
"http.user_agent": { | |
"stringValue": { | |
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36" | |
} | |
}, | |
"http.status_code": { | |
"stringValue": { | |
"value": "200" | |
} | |
}, | |
"g.co/agent": { | |
"stringValue": { | |
"value": "opencensus-node [0.0.9]" | |
} | |
} | |
}, | |
"droppedAttributesCount": 0 | |
}, | |
"timeEvents": { | |
"timeEvent": [ | |
{ | |
"time": "2019-03-25T10:12:48.107Z", | |
"messageEvent": { | |
"id": "78f514e909094a98804da597eb454ba7", | |
"type": 2 | |
} | |
} | |
], | |
"droppedAnnotationsCount": 0, | |
"droppedMessageEventsCount": 0 | |
}, | |
"links": { | |
"link": [], | |
"droppedLinksCount": 0 | |
}, | |
"status": { | |
"code": 0 | |
}, | |
"sameProcessAsParentSpan": true, | |
"childSpanCount": null, | |
"stackTrace": null | |
}, | |
{ | |
"name": "projects/project-name-here/traces/9b6997c2c8d345e1b5187e53659fa755/spans/b12c0bc6fb501bff", | |
"spanId": "b12c0bc6fb501bff", | |
"displayName": { | |
"value": "grpc.google.firestore.v1.Firestore/RunQuery" | |
}, | |
"startTime": "2019-03-25T10:12:18.447Z", | |
"endTime": "2019-03-25T10:12:38.521Z", | |
"attributes": { | |
"attributeMap": { | |
"grpc.method": { | |
"stringValue": { | |
"value": "/google.firestore.v1.Firestore/RunQuery" | |
} | |
}, | |
"grpc.kind": { | |
"intValue": "2" | |
}, | |
"grpc.status_code": { | |
"stringValue": { | |
"value": "0" | |
} | |
}, | |
"g.co/agent": { | |
"stringValue": { | |
"value": "opencensus-node [0.0.9]" | |
} | |
} | |
}, | |
"droppedAttributesCount": 0 | |
}, | |
"timeEvents": { | |
"timeEvent": [], | |
"droppedAnnotationsCount": 0, | |
"droppedMessageEventsCount": 0 | |
}, | |
"links": { | |
"link": [], | |
"droppedLinksCount": 0 | |
}, | |
"status": { | |
"code": 0 | |
}, | |
"sameProcessAsParentSpan": true, | |
"childSpanCount": null, | |
"stackTrace": null, | |
"parentSpanId": "53230f6ca6f6ab08" | |
} | |
] | |
}, | |
"params": {}, | |
"body": "{\"spans\":[{\"name\":\"projects/project-name-here/traces/9b6997c2c8d345e1b5187e53659fa755/spans/53230f6ca6f6ab08\",\"spanId\":\"53230f6ca6f6ab08\",\"displayName\":{\"value\":\"/url\"},\"startTime\":\"2019-03-25T10:12:16.439Z\",\"endTime\":\"2019-03-25T10:12:49.633Z\",\"attributes\":{\"attributeMap\":{\"http.host\":{\"stringValue\":{\"value\":\"localhost\"}},\"http.method\":{\"stringValue\":{\"value\":\"GET\"}},\"http.path\":{\"stringValue\":{\"value\":\"/url\"}},\"http.route\":{\"stringValue\":{\"value\":\"/url\"}},\"http.user_agent\":{\"stringValue\":{\"value\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36\"}},\"http.status_code\":{\"stringValue\":{\"value\":\"200\"}},\"g.co/agent\":{\"stringValue\":{\"value\":\"opencensus-node [0.0.9]\"}}},\"droppedAttributesCount\":0},\"timeEvents\":{\"timeEvent\":[{\"time\":\"2019-03-25T10:12:48.107Z\",\"messageEvent\":{\"id\":\"78f514e909094a98804da597eb454ba7\",\"type\":2}}],\"droppedAnnotationsCount\":0,\"droppedMessageEventsCount\":0},\"links\":{\"link\":[],\"droppedLinksCount\":0},\"status\":{\"code\":0},\"sameProcessAsParentSpan\":true,\"childSpanCount\":null,\"stackTrace\":null},{\"name\":\"projects/project-name-here/traces/9b6997c2c8d345e1b5187e53659fa755/spans/b12c0bc6fb501bff\",\"spanId\":\"b12c0bc6fb501bff\",\"displayName\":{\"value\":\"grpc.google.firestore.v1.Firestore/RunQuery\"},\"startTime\":\"2019-03-25T10:12:18.447Z\",\"endTime\":\"2019-03-25T10:12:38.521Z\",\"attributes\":{\"attributeMap\":{\"grpc.method\":{\"stringValue\":{\"value\":\"/google.firestore.v1.Firestore/RunQuery\"}},\"grpc.kind\":{\"intValue\":\"2\"},\"grpc.status_code\":{\"stringValue\":{\"value\":\"0\"}},\"g.co/agent\":{\"stringValue\":{\"value\":\"opencensus-node [0.0.9]\"}}},\"droppedAttributesCount\":0},\"timeEvents\":{\"timeEvent\":[],\"droppedAnnotationsCount\":0,\"droppedMessageEventsCount\":0},\"links\":{\"link\":[],\"droppedLinksCount\":0},\"status\":{\"code\":0},\"sameProcessAsParentSpan\":true,\"childSpanCount\":null,\"stackTrace\":null,\"parentSpanId\":\"53230f6ca6f6ab08\"}]}", | |
"responseType": "json" | |
}, | |
"code": 400, | |
"errors": [ | |
{ | |
"message": "Invalid value at 'spans[0].time_events.time_event[0].message_event.id' (TYPE_INT64), \"78f514e909094a98804da597eb454ba7\"", | |
"domain": "global", | |
"reason": "badRequest" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment