refactor fix after profiler patch
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
9486bc24fd
commit
e4664c22ea
5 changed files with 8 additions and 9 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue