1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

fixing mem.pprof issue: (#2198)

parsing profile: concatenated profiles detected
fixing web service not start profile issue
fixing no default profile options issue
This commit is contained in:
Johnson C
2021-08-04 16:39:01 +08:00
committed by GitHub
parent c3107e6843
commit 3e0411a3f6
3 changed files with 39 additions and 40 deletions

View File

@ -12,6 +12,8 @@ import (
"github.com/asim/go-micro/v3/client"
"github.com/asim/go-micro/v3/config"
"github.com/asim/go-micro/v3/debug/profile"
"github.com/asim/go-micro/v3/debug/profile/http"
"github.com/asim/go-micro/v3/debug/profile/pprof"
"github.com/asim/go-micro/v3/debug/trace"
"github.com/asim/go-micro/v3/logger"
"github.com/asim/go-micro/v3/registry"
@ -257,7 +259,10 @@ var (
DefaultAuths = map[string]func(...auth.Option) auth.Auth{}
DefaultProfiles = map[string]func(...profile.Option) profile.Profile{}
DefaultProfiles = map[string]func(...profile.Option) profile.Profile{
"http": http.NewProfile,
"pprof": pprof.NewProfile,
}
DefaultConfigs = map[string]func(...config.Option) (config.Config, error){}
)