refactor fix after profiler patch

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-07-16 15:09:51 -07:00
parent 9486bc24fd
commit e4664c22ea
5 changed files with 8 additions and 9 deletions

View file

@ -29,14 +29,13 @@ func main() {
}
port = fmt.Sprintf(":%s", port)
// Profiler initialization, best done as early as possible.
if err := profiler.Start(profiler.Config{
Service: "shippingservice",
ServiceVersion: "1.0.0",
// ProjectID must be set if not running on GCP.
// ProjectID: "my-project",
}); err != nil {
// TODO: Handle error.
log.Fatalf("failed to start profiler: %+v", err)
}
go initTracing()