func List() []string {
	keys := []string{}
	for k := range tracers {
		keys = append(keys, k)
	}
	return keys
}
List all the registered tracers.
package tracer
import (
	"context"
	"fmt"
	"github.com/genuinetools/bpfd/api/grpc"
	"github.com/sirupsen/logrus"
)
var (
	tracers map[string]InitFunc
)
type InitFunc func() (Tracer, error)
type Tracer interface {
	Load() error
	Unload()
	WatchEvent(context.Context) (*grpc.Event, error)
	Start()
	String() string
}
func init() {
	tracers = make(map[string]InitFunc)
}
func Register(name string, initFunc InitFunc) error {
	if _, exists := tracers[name]; exists {
		return fmt.Errorf("tracer name already registered %s", name)
	}
	tracers[name] = initFunc
	return nil
}
func Get(name string) (Tracer, error) {
	if initFunc, exists := tracers[name]; exists {
		return initFunc()
	}
	return nil, fmt.Errorf("tracer %q does not exist as a supported tracer", name)
}