aboutsummaryrefslogtreecommitdiffhomepage
path: root/dhall/server/service/plugin/CorrelationId.dhall
blob: fc69f4ffef7dce98a7fd23c4cd34992c640f44c0 (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