(ctx context.Context, quitCh chan struct{})
| 141 | } |
| 142 | |
| 143 | func (m *Manager) Run(ctx context.Context, quitCh chan struct{}) { |
| 144 | m.Info("instance is started") |
| 145 | defer func() { m.Info("instance is stopped") }() |
| 146 | |
| 147 | if err := m.registerRuntimeComponent(); err != nil { |
| 148 | m.Warningf("runtime metrics registration failed: %v", err) |
| 149 | } else { |
| 150 | defer m.unregisterRuntimeComponent() |
| 151 | } |
| 152 | |
| 153 | m.run(ctx, quitCh) |
| 154 | } |
| 155 | |
| 156 | func (m *Manager) run(ctx context.Context, quitCh chan struct{}) { |
| 157 | parser := newInputParser() |