RFC: configure sending an X-Request-Id header for use by twilio engineers in debugging requests #523
Labels
status: waiting for feedback
waiting for feedback from the submitter
type: question
question directed at the library
Issue Summary
A twilio engineer in a support ticket has asked me to add an
X-Request-Id
header to requests we make, and though adding custom headers is supported in the library in general (since #516 ), there's no public interface for me to add this intwilio_client.messages.create(payload)
.Short of generally exposing a custom headers interface, it seems that opting in to including a request-id might be a desirable feature.
I don't see an small surgical way to add the header on message creation, e.g. https://github.com/twilio/twilio-ruby/blob/5.39.1/lib/twilio-ruby/rest/api/v2010/account/message.rb
per #214 (comment) something like this was added a while ago, but I see no evidence of it beyond the comment.
I'd be willing to write it.
Steps to Reproduce
Code Snippet
Exception/Log
n/a
Technical details:
The text was updated successfully, but these errors were encountered: