From 82272062082e880f08e9589039723cdb93013613 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Fri, 8 Nov 2019 12:11:55 +0300 Subject: [PATCH] use service id in profile file name (#925) Signed-off-by: Vasiliy Tolstov --- service.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service.go b/service.go index 4073ff8d..f2d9fea8 100644 --- a/service.go +++ b/service.go @@ -154,8 +154,9 @@ func (s *service) Run() error { if prof := os.Getenv("MICRO_DEBUG_PROFILE"); len(prof) > 0 { service := s.opts.Server.Options().Name version := s.opts.Server.Options().Version + id := s.opts.Server.Options().Id profiler := pprof.NewProfile( - profile.Name(service + "." + version), + profile.Name(service + "." + version + "." + id), ) if err := profiler.Start(); err != nil { return err