aboutsummaryrefslogtreecommitdiffhomepage
path: root/dhall/server/service/plugin/correlationId.dhall
blob: 41c572098cfe26805366f3cd391a781fd0174984 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 =
                  merge
                    { None = "uuid#counter", Some = λ(x : Text) → x }
                    generator
              }
        }
      : Plugin