diff --git a/cluster/config_opts.go b/cluster/config_opts.go index 5fe0619f..3ccfd5e0 100644 --- a/cluster/config_opts.go +++ b/cluster/config_opts.go @@ -60,3 +60,9 @@ func WithRequestLog(enabled bool) ConfigOption { c.RequestLog = enabled } } + +func WithClusterContextProducerFunc(f func(*Cluster) Context) ConfigOption { + return func(c *Config) { + c.ClusterContextProducer = f + } +}