Skip to content

Commit

Permalink
Merge pull request #71 from uc-cdis/feat/dd
Browse files Browse the repository at this point in the history
feat: adding tracer for DataDog
  • Loading branch information
m0nhawk authored Jun 28, 2023
2 parents cbc2dc3 + 2df8a28 commit 012dc01
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
package server

import "log"
import (
"log"
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer"
)

func Init() {
tracer.Start()
defer tracer.Stop()

r := NewRouter()
if err := r.Run(); err != nil {
log.Printf("unhandled server error:\n%s", err.Error())
Expand Down

0 comments on commit 012dc01

Please sign in to comment.