aboutsummaryrefslogtreecommitdiffhomepage
path: root/dhall/server/service/plugin/correlationId.dhall
blob: d5d592860d0db6134576c57aa2fa40a5df22c08a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
let Plugin = ./Plugin.dhall

let config = ./Config.dhall

in    λ(generator : Optional Text)
    →   { name =
            "correlation-id"
        , config =
            config.CorrelationId
            { header_name =
                "X-correl"
            , echo_downstream =
                True
            , generator =
                Optional/fold
                Text
                generator
                Text
                (λ(t : Text) → t)
                "uuid#counter"
            }
        }
      : Plugin