config_provider.go
config_provider.go - Overview
-
Overview This file defines the
AgentConfigProvider
interface, which extends the baseAgentConfigProvider
interface from themodel
package and adds a subscription mechanism for config updates. -
Detailed Documentation
Interface: AgentConfigProvider
- Purpose: Defines an interface for a source of otel collector config recommendations, extending the
model.AgentConfigProvider
interface with subscription capabilities. - Methods:
SubscribeToConfigUpdates(callback func()) (unsubscribe func())
- Purpose: Allows subscribing to notifications about configuration changes.
- Parameters:
callback func()
: A function to be called when the configuration is updated.
- Returns:
unsubscribe func()
: A function to unsubscribe from the configuration updates.
-
Code Examples None.
-
Clarity and Accuracy The documentation reflects the code accurately.
-
Markdown & MDX Perfection The markdown is valid.
-
Edge Cases To Avoid Breaking MDX No issues.
-
Getting Started Relevance Include in Getting Started: NO