]> git.immae.eu Git - github/fretlink/ansible-kong-app.git/blob - dhall/server/service/plugin/correlationId.dhall
41c572098cfe26805366f3cd391a781fd0174984
[github/fretlink/ansible-kong-app.git] / dhall / server / service / plugin / correlationId.dhall
1 let Plugin = ./Plugin.dhall
2
3 let config = ./Config.dhall
4
5 in λ(generator : Optional Text) →
6 { name = "correlation-id"
7 , config =
8 config.CorrelationId
9 { header_name = "X-correl"
10 , echo_downstream = True
11 , generator =
12 merge
13 { None = "uuid#counter", Some = λ(x : Text) → x }
14 generator
15 }
16 }
17 : Plugin