refactor initTrace -> initTracing()
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
5a32ddf0ff
commit
d01f525453
2 changed files with 15 additions and 11 deletions
|
@ -69,7 +69,7 @@ func main() {
|
|||
}
|
||||
port = fmt.Sprintf(":%s", port)
|
||||
|
||||
initTrace()
|
||||
initTracing()
|
||||
|
||||
lis, err := net.Listen("tcp", port)
|
||||
if err != nil {
|
||||
|
@ -86,7 +86,7 @@ func main() {
|
|||
}
|
||||
}
|
||||
|
||||
func initTrace() {
|
||||
func initTracing() {
|
||||
exporter, err := stackdriver.NewExporter(stackdriver.Options{})
|
||||
if err != nil {
|
||||
log.Printf("failed to initialize stackdriver exporter: %+v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue