Register adds an integration to the manager
(integration Integration)
| 38 | |
| 39 | // Register adds an integration to the manager |
| 40 | func (m *Manager) Register(integration Integration) { |
| 41 | m.mu.Lock() |
| 42 | defer m.mu.Unlock() |
| 43 | m.integrations = append(m.integrations, integration) |
| 44 | m.logger.WithField("integration", integration.Name()).Debug("Registered integration") |
| 45 | } |
| 46 | |
| 47 | // DiscoverIntegrations checks which integrations are available and returns them |
| 48 | // Only returns integrations that are both available and enabled (if enabled checker is set) |
no test coverage detected