Permalink
Browse files

Added client tracking to server

  • Loading branch information...
1 parent c23ed19 commit b88713962541515392c10ac2ec278aaca712b5bb @dustin dustin committed Jan 20, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 main.go
View
@@ -5,6 +5,7 @@ import (
"encoding/hex"
"encoding/json"
"errors"
+ "expvar"
"flag"
"fmt"
"log"
@@ -17,6 +18,7 @@ import (
"github.com/couchbaselabs/cbfs/config"
"github.com/dustin/go-humanize"
"github.com/dustin/gomemcached"
+ "github.com/dustin/httputil"
)
var bindAddr = flag.String("bind", ":8484", "Address to bind web thing to")
@@ -182,6 +184,7 @@ func main() {
initNodeListKeys()
http.DefaultTransport = TimeoutTransport(*internodeTimeout)
+ expvar.Publish("httpclients", httputil.InitHTTPTracker(false))
if getHash() == nil {
fmt.Fprintf(os.Stderr,

0 comments on commit b887139

Please sign in to comment.