Skip to content

Commit

Permalink
[EBPF] - fixed LockContentionCollector init (#26992)
Browse files Browse the repository at this point in the history
  • Loading branch information
val06 authored Jun 24, 2024
1 parent 5d6b846 commit 1025df1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/system-probe/subcommands/run/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,9 @@ func startSystemProbe(log log.Component, statsd compstatsd.Component, telemetry
if pc := ebpftelemetry.NewPerfUsageCollector(); pc != nil {
telemetry.RegisterCollector(pc)
}
telemetry.RegisterCollector(ddebpf.NewLockContentionCollector())
if lcc := ddebpf.NewLockContentionCollector(); lcc != nil {
telemetry.RegisterCollector(lcc)
}
}
go func() {
common.ExpvarServer = &http.Server{
Expand Down

0 comments on commit 1025df1

Please sign in to comment.