DynamicFlowProcessor represents instance of hubble exporter with dynamic configuration reload.
| 22 | // DynamicFlowProcessor represents instance of hubble exporter with dynamic |
| 23 | // configuration reload. |
| 24 | type DynamicFlowProcessor struct { |
| 25 | logger *slog.Logger |
| 26 | watcher *metricConfigWatcher |
| 27 | // Protects against deregistering metric handlers while ProcessFlow is executing, or concurrent config reloads. |
| 28 | mutex lock.RWMutex |
| 29 | Metrics []api.NamedHandler |
| 30 | registry *prometheus.Registry |
| 31 | } |
| 32 | |
| 33 | // ProcessFlow implements FlowProcessor. |
| 34 | func (p *DynamicFlowProcessor) ProcessFlow(ctx context.Context, flow *flowpb.Flow) error { |
nothing calls this directly
no outgoing calls
no test coverage detected