You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, all requests are being logged as Info (v1.4.3/instrumentation.go:56) and it really results in lots and lots of logs, hence increases costs for our applications.
As per our application's requirements, we don't want to see logs for HTTP200 responses.
What we would like to achieve is to log depending on the response.status value like below.
However, if you come up with a better idea, we are welcome to use it.
I can understand your need to not log all downstream requests, we'll have to consider a general solution rather than one that just fits your use case though.
Are you ok running a fork for now while we consider this?
Things to consider:
Should this be configurable
Log levels, error should be for gateway errors, not downstream responses, so perhaps warning makes more sense
We could make the instrumentation middleware customisable
Thanks for comprehensive response. We are currently unable to run a fork due to corporate policies. Because of that we are wondering if this issue has been planned/started etc.
Hi @anar-khalilov, it's not on our roadmap yet. If you are unable to run a fork, are you able to put a filter in your log collection that drops the unneeded records?
#179
Currently, all requests are being logged as Info (v1.4.3/instrumentation.go:56) and it really results in lots and lots of logs, hence increases costs for our applications.
As per our application's requirements, we don't want to see logs for HTTP200 responses.
What we would like to achieve is to log depending on the
response.status
value like below.However, if you come up with a better idea, we are welcome to use it.
The text was updated successfully, but these errors were encountered: