mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-13 12:21:48 +08:00

* feat: add interface for opamp.AgentConfigProvider * feat: add iface and plumbing for generating recommended conf in opamp/agent * feat: get opamp server config provider tests started * chore: add test scenario for agent connection without a config recommendation * chore: add test scenario for agent connection with a config recommendation * chore: add test for validating config deployment status gets reported * chore: add test for rolling out latest config recommendations when config changes * chore: wrap up opamp server lifecycle tests * chore: some tests cleanup * chore: get all tests passing * chore: update opamp server init logic in ee query service * chore: some cleanup * chore: some final cleanup
13 lines
452 B
Go
13 lines
452 B
Go
package opamp
|
|
|
|
import "go.signoz.io/signoz/pkg/query-service/app/opamp/model"
|
|
|
|
// Interface for a source of otel collector config recommendations.
|
|
type AgentConfigProvider interface {
|
|
model.AgentConfigProvider
|
|
|
|
// Subscribe to be notified on changes in config provided by this source.
|
|
// Used for rolling out latest config recommendation to all connected agents when settings change
|
|
SubscribeToConfigUpdates(callback func()) (unsubscribe func())
|
|
}
|