Skip to content

Commit

Permalink
fix standalone
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
  • Loading branch information
pavolloffay committed Nov 8, 2017
1 parent d8f588b commit 4b12db5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/standalone/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,12 @@ func startZipkinHTTPAPI(
) {
if zipkinPort != 0 {
r := mux.NewRouter()
zipkin.NewAPIHandler(zipkinSpansHandler).RegisterRoutes(r)
zHandler, err := zipkin.NewAPIHandler(zipkinSpansHandler)
if err != nil {
logger.Fatal("Failed to initialize Zipkin handler", zap.Error(err))
}

zHandler.RegisterRoutes(r)
httpPortStr := ":" + strconv.Itoa(zipkinPort)
logger.Info("Listening for Zipkin HTTP traffic", zap.Int("zipkin.http-port", zipkinPort))

Expand Down

0 comments on commit 4b12db5

Please sign in to comment.