Skip to content

Commit

Permalink
Fix total_clients metric
Browse files Browse the repository at this point in the history
  • Loading branch information
anfragment committed Jun 5, 2024
1 parent 598520f commit 7926ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/cursors/subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var upgrader = websocket.Upgrader{
},
}

var totalClients = metrics.NewCounter[uint64]("total_clients", metrics.CounterConfig{})
var TotalClients = metrics.NewCounter[uint64]("total_clients", metrics.CounterConfig{})

// Subscribe subscribes to cursor updates for a given URL.
//
Expand Down Expand Up @@ -94,7 +94,7 @@ func Subscribe(w http.ResponseWriter, req *http.Request) {
return
}

totalClients.Increment()
TotalClients.Increment()

id := uuid.New().String()
rlog := rlog.With("cursor_id", id)
Expand Down

0 comments on commit 7926ea4

Please sign in to comment.