contrib/promexporter/exporters/exporter.go
Function StartExporterServer
has 7 return statements (exceeds 4 allowed). Open
Open
func StartExporterServer(ctx context.Context, handler metrics.Handler, cfg config.Config) error {
// the main server serves metrics since this is only a prom exporter
_ = os.Setenv(metrics.MetricsPortEnabledEnv, "false")
router := ginhelper.New(logger)