chore: add enable metric flag

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

No files matched your search

+2
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 {