ExAzureCore. Http. Plugins. RequestId
(ex_azure_core v0.3.0)
Copy Markdown
Req plugin that manages request ID tracking for Azure services.
Generates a UUID for the x-ms-client-request-id header if not already present,
enabling request correlation across Azure services.
Headers
x-ms-client-request-id- Client-generated request ID (UUID)x-ms-request-id- Server-generated request ID (extracted from response)
Options
:request_id- Override the generated request ID with a specific value
Example
req = Req.new()
|> ExAzureCore.Http.Plugins.RequestId.attach()
# With custom request ID
req = Req.new()
|> ExAzureCore.Http.Plugins.RequestId.attach(request_id: "my-custom-id")
Summary
Functions
Attaches the request ID plugin to a Req request.
Functions
@spec attach( Req.Request.t(), keyword() ) :: Req.Request.t()
Attaches the request ID plugin to a Req request.