| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Exchange.Types
Description
The handle every upstream exchange runs through, shared by the composition root that builds it and the exchanges that read it.
Synopsis
- data ExchangeClient = ExchangeClient {}
- type TraceExchange = Request -> (Request -> IO (Response BodyReader)) -> IO (Response BodyReader)
- untracedExchange :: TraceExchange
Documentation
data ExchangeClient Source #
One connection pool, the process's deadline sweeper, and the tracing of each exchange, built once at startup for each pool. Every exchange needs all three, so they travel together.
Constructors
| ExchangeClient | |
Fields
| |
type TraceExchange = Request -> (Request -> IO (Response BodyReader)) -> IO (Response BodyReader) Source #
Open one response through the opener, handing it the request with any headers the tracing adds.
untracedExchange :: TraceExchange Source #
Open the response with no client span, for a store the Dredger reads or a process without telemetry.