Logging Design for API Proxy

Hi,

I am trying to implement the log mechanism for tracking and tracing of the API traffic. As part of this framework I am converting all the headers to local variables using javascript , in this scenario I would like to capture the request headers, response headers and error variables across the flows.

I can write single javascript to be called at multiple flows or embed into sharedflow and call it at all the flow hooks .

Is there a better way to handle this scenario ? or the approach i am following will help me to achieve my goal with performance impact .

Thanks,

Latheef D

1 2 341
2 REPLIES 2

@Latheef,

Having Javascript at various flows and capturing all the variables and then use Message Logging Policy in PostClientFlow to log them is the best practice.

You can read more about this in this community post.