Skip to content

Commit

Permalink
Add default branch to collector creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
austinhartzheim committed Mar 27, 2018
1 parent 9620fe8 commit bd1d500
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion trace/trace.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package trace

import (
"fmt"
"log"
"net/http"
"os"
Expand Down Expand Up @@ -35,10 +36,12 @@ func CreateCollector(collectorType, connectString, topic string) zipkin.Collecto
kafkaHosts,
zipkin.KafkaTopic(topic),
)
default:
err = fmt.Errorf("Unknown collector type.")
}

if err != nil {
log.Fatalf("Unable to create Zipkin %s collector: %+v", collectorType, err)
log.Fatalf("Unable to create Zipkin %s collector: %v", collectorType, err)
}

return collector
Expand Down

0 comments on commit bd1d500

Please sign in to comment.