[FEATURE] Add Request and Response Log for debugging purposes #121

Closed
opened 2026-02-16 00:19:58 -05:00 by yindo · 0 comments
Owner

Originally created by @NeatGuyCoding on GitHub (May 22, 2025).

To aid in debugging, it's crucial to maintain request and response logs that include a trace ID, whether sourced from OTLP or generated internally.

For example:

2025/05/22 15:39:40 http_server.go:276: [DEBUG]HTTP Request(a57a712f-eb16-457b-ab18-92dbf5263787): POST /plugin/9b271264-72e6-4af9-ab96-8a94d802a574/debugging/key, content-type: 
2025/05/22 15:39:40 http_server.go:292: [DEBUG]HTTP Response(a57a712f-eb16-457b-ab18-92dbf5263787) status: 200, content-type: application/json; charset=utf-8, time elapsed: 1.009208ms, body: {"code":0,"message":"success","data":{"key":"e20acd40-c97d-4e26-a3a5-3dce7be5d89b"}}
Originally created by @NeatGuyCoding on GitHub (May 22, 2025). To aid in debugging, it's crucial to maintain request and response logs that include a trace ID, whether sourced from OTLP or generated internally. For example: ``` 2025/05/22 15:39:40 http_server.go:276: [DEBUG]HTTP Request(a57a712f-eb16-457b-ab18-92dbf5263787): POST /plugin/9b271264-72e6-4af9-ab96-8a94d802a574/debugging/key, content-type: 2025/05/22 15:39:40 http_server.go:292: [DEBUG]HTTP Response(a57a712f-eb16-457b-ab18-92dbf5263787) status: 200, content-type: application/json; charset=utf-8, time elapsed: 1.009208ms, body: {"code":0,"message":"success","data":{"key":"e20acd40-c97d-4e26-a3a5-3dce7be5d89b"}} ```
yindo added the plugin-daemonenhancement labels 2026-02-16 00:19:58 -05:00
yindo closed this issue 2026-02-16 00:19:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#121