Skip to content

Commit

Permalink
Add goroutine annotation for stream internal loop
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Twigg <[email protected]>
  • Loading branch information
neilalexander authored and wallyqs committed May 21, 2024
1 parent 9273b3d commit c9808f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -4870,6 +4870,10 @@ func (mset *stream) name() string {

func (mset *stream) internalLoop() {
mset.mu.RLock()
setGoRoutineLabels(pprofLabels{
"account": mset.acc.Name,
"stream": mset.cfg.Name,
})
s := mset.srv
c := s.createInternalJetStreamClient()
c.registerWithAccount(mset.acc)
Expand Down

0 comments on commit c9808f8

Please sign in to comment.