1
0
Fork 0

Log provider namespace during startup

This commit is contained in:
shreealt 2025-10-03 19:00:05 +05:30 committed by GitHub
parent 0b7f0b4042
commit 7cc8b099d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 86 additions and 2 deletions

View file

@ -12,3 +12,14 @@ type Provider interface {
Provide(configurationChan chan<- dynamic.Message, pool *safe.Pool) error
Init() error
}
// NamespacedProvider is implemented by providers that support namespace-scoped configurations,
// where each configured namespace results in a dedicated provider instance.
// This enables clear identification of which namespace each provider instance serves during
// startup logging and operational monitoring.
type NamespacedProvider interface {
Provider
// Namespace returns the specific namespace this provider instance is configured for.
Namespace() string
}