Files
MarioandGitHub 8e498e13d8 Update OTel collector to v0.57.2 (#1757)
* Upgrade OTel collector to v0.57.2

* Fixes and more fixes

* Remove collector replace directive

* Update otel tracing instrumentation

* Merge import blocks

* Changelog

* Change carriers to opentracing.TextMap

* Address comments
2022-09-28 06:51:44 +00:00

22 lines
289 B
Go

package stats
type Config struct {
rootdir string
}
type Option func(*Config)
func newConfig(opts ...Option) *Config {
var cfg Config
for _, opt := range opts {
opt(&cfg)
}
return &cfg
}
func WithRootDir(dir string) Option {
return func(cfg *Config) {
cfg.rootdir = dir
}
}