request_trace_id v0.1.0 RequestTraceId View Source
A plug for creating unique span-ids on each request. Based on:
https://github.com/elixir-plug/plug/blob/ 3d48af2b97d58c183a7b8390abc42ac5367b0770/lib/plug/request_id.ex#L1
The difference being that this plug will append a new span-id to the request-trace-id header if there is already a value set instead of only passing along the existing request-trace-id.
Link to this section Summary
Functions
Callback implementation for Plug.call/2
Generates a random id to represent the request
Callback implementation for Plug.init/1
Updates the request-trace-id by appending a new span-id or returning just a new span-id if the request-trace-id is empty
Link to this section Functions
Callback implementation for Plug.call/2
.
Generates a random id to represent the request.
Callback implementation for Plug.init/1
.
Updates the request-trace-id by appending a new span-id or returning just a new span-id if the request-trace-id is empty.