Skip to content

Commit

Permalink
chore: disable vm_line_processing_duration_seconds_bucket of mtail
Browse files Browse the repository at this point in the history
  • Loading branch information
kongfei605 committed Sep 29, 2024
1 parent 42e0da4 commit df24075
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inputs/mtail/internal/runtime/vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -959,10 +959,10 @@ func (v *VM) execute(t *thread, i code.Instr) {
// ProcessLogLine handles the incoming lines by running a fetch-execute cycle
// on the VM bytecode with the line as input to the program, until termination.
func (v *VM) ProcessLogLine(ctx context.Context, line *logline.LogLine) {
start := time.Now()
defer func() {
LineProcessingDurations.WithLabelValues(v.name).Observe(time.Since(start).Seconds())
}()
// start := time.Now()
// defer func() {
// LineProcessingDurations.WithLabelValues(v.name).Observe(time.Since(start).Seconds())
// }()
t := new(thread)
t.matched = false
v.t = t
Expand Down

0 comments on commit df24075

Please sign in to comment.