Add config for setting up a jaeger opentracing reporter (#271)

* Add config for setting up a jaeger opentracing reporter

* Remove redundant comment
This commit is contained in:
Mark Haines 2017-09-28 17:00:23 +01:00 committed by GitHub
parent 4a0b24c7f4
commit 847621bc5d
10 changed files with 89 additions and 0 deletions

View file

@ -47,6 +47,12 @@ func main() {
log.Fatalf("Invalid config file: %s", err)
}
closer, err := cfg.SetupTracing("DendritePublicRoomsAPI")
if err != nil {
log.WithError(err).Fatalf("Failed to start tracer")
}
defer closer.Close() // nolint: errcheck
queryAPI := api.NewRoomserverQueryAPIHTTP(cfg.RoomServerURL(), nil)
db, err := storage.NewPublicRoomsServerDatabase(string(cfg.Database.PublicRoomsAPI))