code: func (p *Plugin) AfterInit() error {
  	if p.StatusCheck == nil {
  		p.Log.Warnf("Unable to register probe handlers, StatusCheck is nil")
  		return nil
  	}
  
  	if p.HTTP != nil {
  		p.Log.Infof("Starting health http-probe on port %v", p.HTTP.GetPort())
  		p.HTTP.RegisterHTTPHandler(livenessProbePath, p.livenessProbeHandler, "GET")
  		p.HTTP.RegisterHTTPHandler(readinessProbePath, p.readinessProbeHandler, "GET")
  	} else {
  		p.Log.Info("Unable to register http-probe handler, HTTP is nil")
  	}
  
  	if p.Prometheus != nil {
  		if err := p.registerPrometheusProbe(); err != nil {
  			return err
  		}
  	} else {
  		p.Log.Info("Unable to register prometheus-probe handler, Prometheus is nil")
  	}
  
  	return nil
  }
docs: // AfterInit registers HTTP handlers for liveness and readiness probes.