Is it possible for Ktor Client to access the `call...
# ktor
c
Is it possible for Ktor Client to access the
call.attributes
or headers from a request of Ktor Server? For example 1. Receive a request in the server containing a header of
X-B3-TraceId
2. I save this header into the call state
call.attributes
3. I make a REST call to an external service and I want to forward this header Preferably I don't want to manually forward this value when I make the call
I found out I can store them into the MDC context and access it in my HttpClient but it will add it to the logs, wondering if there are other ways of accessing the call context
a
Also, you can save and access the headers in the coroutine context.
kodee surprised 1