Skip to content

Commit

Permalink
Merge 39406e3 into 0358a1b
Browse files Browse the repository at this point in the history
  • Loading branch information
jprobinson committed Apr 12, 2019
2 parents 0358a1b + 39406e3 commit af6c96e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions go.sum
Expand Up @@ -75,6 +75,7 @@ github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+u
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no=
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57 h1:eqyIo2HjKhKe/mJzTG8n4VqvLXIOEG+SLdDqX7xGtkY=
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
github.com/googleapis/gax-go v2.0.0+incompatible h1:j0GKcs05QVmm7yesiZq2+9cxHkNK9YM6zKx4D2qucQU=
github.com/googleapis/gax-go v2.0.0+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY=
Expand Down
11 changes: 11 additions & 0 deletions server/kit/kitserver.go
Expand Up @@ -12,6 +12,7 @@ import (
"strings"

"cloud.google.com/go/errorreporting"
"cloud.google.com/go/profiler"
sdpropagation "contrib.go.opencensus.io/exporter/stackdriver/propagation"
"github.com/NYTimes/gizmo/observe"
"github.com/go-kit/kit/log"
Expand Down Expand Up @@ -124,6 +125,16 @@ func NewServer(svc Service) *Server {
lg.Log("error", err,
"message", "unable to initiate error reporting client")
}

err = profiler.Start(profiler.Config{
ProjectID: projectID,
Service: svcName,
ServiceVersion: svcVersion,
})
if err != nil {
lg.Log("error", err,
"message", "unable to initiate profiling client")
}
}

s := &Server{
Expand Down

0 comments on commit af6c96e

Please sign in to comment.