This repository was archived by the owner on Feb 22, 2022. It is now read-only.

Description
Essentially doing this: https://blog.mavnn.co.uk/logging-freya/
and finding that adding the composition affects every request - it takes a significant CPU hit (response time going from ~20ms to ~300ms). Tests indicate that it's something in the composition itself, as injecting the value into the freya state takes no time at all.
Sample code:
let owin : OwinMidFunc =
OwinMidFunc.ofFreya (Polyfill.kestrel
>?= withLogger "log"
>?= apiPipeline)
app.UseOwin(fun p -> p.Invoke owin)
Wondering if I'm doing it wrong, or maybe there's a way to optimize that away.