IBM / cloudant-go-sdk

Cloudant SDK for Go
Apache License 2.0
21 stars 12 forks source link

feat: set x-request-id as error trace #549

Closed eiri closed 6 days ago

eiri commented 6 days ago

PR summary

If the x-request-id header is on a response use it to set the error trace field (in preference to x-couch-request-id, but still use x-couch-request-id if there is no x-request-id).

Fixes: part of s1037

Note: An existing issue is required before opening a PR.

PR Checklist

Please make sure that your PR fulfills the following requirements:

PR Type

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change?

Other information