diff --git a/interpreter/customlabels/customlabels.go b/interpreter/customlabels/customlabels.go index d7c8abae..ace5dda5 100644 --- a/interpreter/customlabels/customlabels.go +++ b/interpreter/customlabels/customlabels.go @@ -104,7 +104,8 @@ func (d data) Attach(ebpf interpreter.EbpfHandler, pid libpf.PID, abiVersion := rm.Uint32(abiVersionPtr) if abiVersion != 0 { - return nil, fmt.Errorf("Unsupported custom labels ABI version: %d (only 0 is supported)", abiVersion) + return nil, fmt.Errorf("unsupported custom labels ABI version: %d"+ + " (only 0 is supported)", abiVersion) } var tlsOffset uint64 @@ -127,4 +128,3 @@ func (d data) Attach(ebpf interpreter.EbpfHandler, pid libpf.PID, func (i *instance) Detach(ebpf interpreter.EbpfHandler, pid libpf.PID) error { return ebpf.DeleteProcData(libpf.CustomLabels, pid) } - diff --git a/processmanager/execinfomanager/manager.go b/processmanager/execinfomanager/manager.go index 43680af8..debaadcf 100644 --- a/processmanager/execinfomanager/manager.go +++ b/processmanager/execinfomanager/manager.go @@ -133,8 +133,7 @@ func NewExecutableInfoManager( interpreterLoaders = append(interpreterLoaders, apmint.Loader) if collectCustomLabels { - interpreterLoaders = append(interpreterLoaders, golang.Loader) - interpreterLoaders = append(interpreterLoaders, customlabels.Loader) + interpreterLoaders = append(interpreterLoaders, golang.Loader, customlabels.Loader) } deferredFileIDs, err := lru.NewSynced[host.FileID, libpf.Void](deferredFileIDSize,