Skip to content

Commit

Permalink
address extension breaking change in smartagentreceiver
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax committed Feb 10, 2025
1 parent b68a28c commit 13cf301
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 486 deletions.
4 changes: 2 additions & 2 deletions internal/confmapprovider/discovery/discoverer.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type discoverer struct {
factories otelcol.Factories
// receiverID -> observerID -> config
unexpandedReceiverEntries map[component.ID]map[component.ID]map[string]any
operationalObservers map[component.ID]otelcolextension.Extension // Only extensions successfully started should be added to this map.
operationalObservers map[component.ID]component.Component // Only extensions successfully started should be added to this map.
logger *zap.Logger
discoveredReceivers map[component.ID]discovery.StatusType
configs map[string]*Config
Expand Down Expand Up @@ -679,7 +679,7 @@ func (d *discoverer) GetFactory(kind component.Kind, componentType component.Typ

// GetExtensions is a component.Host method used to forward discovery observers.
// This method only returns operational extensions, i.e., those that have been successfully started.
func (d *discoverer) GetExtensions() map[component.ID]otelcolextension.Extension {
func (d *discoverer) GetExtensions() map[component.ID]component.Component {
return d.operationalObservers
}

Expand Down
Loading

0 comments on commit 13cf301

Please sign in to comment.