wso2 / product-micro-integrator

The cloud-native configuration driven runtime that helps developers implement composite microservices.
https://wso2.com/integration/
Apache License 2.0
204 stars 221 forks source link

[New Feature]: Log each request and response with relevant details #3680

Open chathurace opened 1 month ago

chathurace commented 1 month ago

Description

Logging each request and response with a timestamp, status, response time, etc, is useful for observability purposes. This is especially useful for deriving metrics from logs. Such logs need to be generated from all transports, and should have the ability to enable or disable logging via a configuration.

e.g. logs for HTTP: [timestamp] <request|response> \ \ \ \ \ \ [2024-07-27T11:31:06] request b76a4c42-8eaa-466b-b471-fbfa4cb759bf GET /sales /accounts [2024-07-27T11:31:06] response 9e01c068-97c9-44be-8424-5643eb4852 GET /sales /accounts 200 2489

Describe your problem(s)

No response

Describe your solution(s)

No response

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response