Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
Description
Using https://github.com/couchbaselabs/gocbv14 for traceabilty and turned log level DEBUG(INFO level does not show slow log)
I could not find correlation id maps to server's
Here is Go SDK log example
[GOCB]Threshold Log:
|
[GOCB] {"service":"kv","count":10,"top":[{"operation_name":"Upsert","total_us":1495397,"encode_us":9,"server_us":144},{"operation_name":"Get","total_us":1355022,"server_us":22,"decode_us":57},{"operation_name":"Get","total_us":1106470,"server_us":27,"decode_us":22},{"operation_name":"Get","total_us":969066,"server_us":22,"decode_us":19},{"operation_name":"Get","total_us":892679,"server_us":22,"decode_us":29},{"operation_name":"Upsert","total_us":763744,"encode_us":8,"server_us":99},{"operation_name":"Upsert","total_us":732625,"encode_us":7,"server_us":83},{"operation_name":"Get","total_us":726531,"server_us":18,"decode_us":27},{"operation_name":"Upsert","total_us":682192,"encode_us":3,"server_us":49},{"operation_name":"Upsert","total_us":645410,"encode_us":7,"server_us":83}]}
|
[GOCB] {"service":"query","count":1,"top":[{"operation_name":"ExecuteSearchQuery","total_us":1343565,"dispatch_us":1343424,"last_dispatch_us":1343424}]}
|
[GOCB] {"service":"search","count":1,"top":[{"operation_name":"ExecuteSearchQuery","total_us":1134357,"dispatch_us":1134157,"last_dispatch_us":1134157}]}
|
Here is and example of server's log
Slow operation. {"cid":"19c620150c9258f7/224bc5993ccbf88c/5a13","duration":"14 us","trace":"request=4299793490917279:14 get=4299793490921350:6","command":"GET","peer":"172.17.0.7:47320"}
|
Server Correlation id is constructed with three values separated by '/' in "cid" field. SDK log supposed to have those three strings in log
Expected : "local_id", "operation_id" are there so I can construct correlation id and match with server's correlation id
Actual : "local_id", "operation_id" are missing