chore: add enable metric flag

This commit is contained in:
Steven
2024-01-10 10:20:16 +08:00
parent 38cd5fabee
commit 2771602e5c
2 changed files with 14 additions and 2 deletions

View File

@ -28,6 +28,8 @@ type Profile struct {
Driver string `json:"-"`
// Version is the current version of server
Version string `json:"version"`
// Metric indicate the metric collection is enabled or not
Metric bool `json:"-"`
}
func (p *Profile) IsDev() bool {