Skip to content

Commit

Permalink
[ingester] fix application log counter leak
Browse files Browse the repository at this point in the history
  • Loading branch information
lzf575 committed May 24, 2024
1 parent 2b0a525 commit 9e76a00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/ingester/app_log/decoder/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"encoding/json"
"fmt"
"net"
"strconv"
"strings"
"time"

Expand Down Expand Up @@ -152,6 +153,7 @@ func (d *Decoder) GetCounter() interface{} {
func (d *Decoder) Run() {
log.Infof("application log (%s-%d) decoder run", d.msgType.String(), d.index)
ingestercommon.RegisterCountableForIngester("decoder", d, stats.OptionStatTags{
"thread": strconv.Itoa(d.index),
"msg_type": d.msgType.String()})
buffer := make([]interface{}, BUFFER_SIZE)
decoder := &codec.SimpleDecoder{}
Expand Down

0 comments on commit 9e76a00

Please sign in to comment.