Closed greglook closed 1 year ago
The full HTTP path is already present as :vault.client/path
.
The full HTTP path is already present as
:vault.client/path
.
Ah thanks. I just needed to dig in the code a bit, but I see now the full path is added here, generically for all http requests:
Further changes in response to building out a new control-flow handler - this time focused on how the request metadata is supplied to the flow handler as well as how it's attached to responses.
The
flow/call
method already accepted aninfo
argument, but there was no way for each implementation to feed data into that through the HTTP client. Now thehttp/call-api
function accepts:info
as part of the request parameters, which is threaded through the whole call chain. The client also does more work to ensure that gets included in response metadata or exception data, so that the API implementations don't need to worry about that.I tested this by building out a really simple flow handler which logs/prints the captured metadata, then called some
kv2
operations:This intentionally excludes the request query and response headers for brevity, though they are present in the metadata.