Skip to content
Snippets Groups Projects

Distributed Tracing in LabKit

Merged Andrew Newdigate requested to merge d-tracing into master
All threads resolved!
2 files
+ 4
8
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -7,14 +7,12 @@ type inboundHandlerConfig struct {
// InboundHandlerOptions will configure a correlation handler
// currently there are no options, but this gives us the option
// to extend the interface in a backwards compatible way
type InboundHandlerOptions interface {
apply(*inboundHandlerConfig)
}
type InboundHandlerOptions func(*inboundHandlerConfig)
func applyInboundHandlerOptions(opts []InboundHandlerOptions) inboundHandlerConfig {
config := inboundHandlerConfig{}
for _, v := range opts {
v.apply(&config)
v(&config)
}
return config
Loading