INNER CODE UNIT · Go

logServiceReadySummary

openkruise/kruise-game · main.go:357

func logServiceReadySummary(logger logr.Logger, summary serviceSummary) {
	fields := []interface{}{
		telemetryfields.FieldEvent, "service.ready",
		"leader_election", summary.LeaderElection,
	}
	if summary.MetricsAddr != "" {
		fields = append(fields, "metrics.bind_address", summary.MetricsAddr)
	}
	if summary.HealthAddr != "" {
		fields = append(fields, "healthz.bind_address", summary.HealthAddr)
	}
	if summary.Namespace != "" {
		fields = append(fields, "namespace_scope", summary.Namespace)
	}
	if summary.SyncPeriodRaw != "" {
		fields = append(fields, "sync_period", summary.SyncPeriodRaw)
	}
	if summary.LogFormat != "" {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…