Skip to content

Commit

Permalink
restore compression in query
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <ys@uber.com>
  • Loading branch information
Yuri Shkuro committed Mar 3, 2018
1 parent 89ff00a commit acd5458
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/query/main.go
Expand Up @@ -23,6 +23,7 @@ import (
"strconv"
"syscall"

"github.com/gorilla/handlers"
"github.com/gorilla/mux"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down Expand Up @@ -127,11 +128,12 @@ func main() {
}

portStr := ":" + strconv.Itoa(queryOpts.Port)
compressHandler := handlers.CompressHandler(r)
recoveryHandler := recoveryhandler.NewRecoveryHandler(logger, true)

go func() {
logger.Info("Starting jaeger-query HTTP server", zap.Int("port", queryOpts.Port))
if err := http.ListenAndServe(portStr, recoveryHandler(r)); err != nil {
if err := http.ListenAndServe(portStr, recoveryHandler(compressHandler)); err != nil {
logger.Fatal("Could not launch service", zap.Error(err))
}
hc.Set(healthcheck.Unavailable)
Expand Down

0 comments on commit acd5458

Please sign in to comment.