mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-26 03:52:12 +02:00
18 lines
245 B
Go
18 lines
245 B
Go
package trace
|
|
|
|
var defaultOption = option{}
|
|
|
|
type option struct {
|
|
Debug bool
|
|
}
|
|
|
|
// Option dapper Option
|
|
type Option func(*option)
|
|
|
|
// EnableDebug enable debug mode
|
|
func EnableDebug() Option {
|
|
return func(opt *option) {
|
|
opt.Debug = true
|
|
}
|
|
}
|