Skip to content

Commit

Permalink
fix: mongo log was missing the request content
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchaoa authored and sharang committed Nov 8, 2024
1 parent b05bd3c commit 28afcae
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 32 deletions.
Binary file not shown.
2 changes: 2 additions & 0 deletions agent/resources/test/flow_generator/mongo/mongo-msg.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
MongoDBInfo { msg_type: Request, is_tls: false, req_len: 0, resp_len: 0, request_id: 40, response_id: 0, op_code: 2013, op_code_name: "OP_MSG", request: "{ \"find\": \"query\", \"filter\": { \"name\": \"drpanda5\" }, \"lsid\": { \"id\": Binary(0x4, Zncyz0bOQci8PUoMDrjp1A==) }, \"$clusterTime\": { \"clusterTime\": Timestamp(1730962788, 1), \"signature\": { \"hash\": Binary(0x0, do6KlzmB4JeHxZoScsTBiaUPK+c=), \"keyId\": 7376110768963452930 } }, \"$db\": \"sky-test\" }", response: "", response_code: 0, exception: "", status: Ok, captured_request_byte: 230, captured_response_byte: 0, rrt: 0, is_on_blacklist: false, reply_false: false } is_mongo: true
MongoDBInfo { msg_type: Response, is_tls: false, req_len: 0, resp_len: 0, request_id: 40, response_id: 114033465, op_code: 2013, op_code_name: "OP_MSG", request: "", response: "{ \"cursor\": { \"firstBatch\": [{ \"_id\": ObjectId(\"672c2bc7f4ef2be05f1ddcc4\"), \"name\": \"drpanda5\", \"age\": \"111\" }], \"id\": 0, \"ns\": \"sky-test.query\" }, \"ok\": 1, \"$clusterTime\": { \"clusterTime\": Timestamp(1730962793, 1), \"signature\": { \"hash\": Binary(0x0, TnrsiYcYS4G/qXIz5V1ihb70jic=), \"keyId\": 7376110768963452930 } }, \"operationTime\": Timestamp(1730962793, 1) }", response_code: 0, exception: "", status: Ok, captured_request_byte: 0, captured_response_byte: 285, rrt: 1458, is_on_blacklist: false, reply_false: false } is_mongo: false
Loading

0 comments on commit 28afcae

Please sign in to comment.