Can I associate an abritrary identifier with a Reqwest client? #2671
Unanswered
jasonterando
asked this question in
Q&A
Replies: 1 comment
-
Not likely, or not easily. Well, you may notice the logs do include a random ID generated for each connection. However, I wouldn't personally depend on that option for what you're asking. I'd add some instrumentation to the request and response body streams themselves, instead of at the IO level. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an application that can have multiple "documents" opened, and I would like to be able to report to the user I/O activity for any given document. I can capture read/write information by enabling connection_verbose in ClientBuilder, but it is very difficult to associate the log Records I capture with my documents.
I'm wondering if there's a way to store/associate an identifier with a Reqwest Client (or call to get/post, etc.) that would show up in the log events. That would allow me to tie things together.
Beta Was this translation helpful? Give feedback.
All reactions