Fixes https://github.com/polygon-io/client-go/issues/390. When using models.WithTrace(true) there was an issue where tracing data was not captured for failed API requests. Now, tracing consistently logs request and response details, including status codes, for both successful and erroneous responses.
Fixes https://github.com/polygon-io/client-go/issues/390. When using
models.WithTrace(true)
there was an issue where tracing data was not captured for failed API requests. Now, tracing consistently logs request and response details, including status codes, for both successful and erroneous responses.Example:
Successful:
Failed (no trace info was shown before):