| 79 | } |
| 80 | |
| 81 | type Processor struct { |
| 82 | Cfg Config |
| 83 | |
| 84 | registry registry.Registry |
| 85 | store store.Store |
| 86 | |
| 87 | closeCh chan struct{} |
| 88 | |
| 89 | serviceGraphRequestTotal registry.Counter |
| 90 | serviceGraphRequestFailedTotal registry.Counter |
| 91 | serviceGraphRequestServerSecondsHistogram registry.Histogram |
| 92 | serviceGraphRequestClientSecondsHistogram registry.Histogram |
| 93 | serviceGraphRequestMessagingSystemSecondsHistogram registry.Histogram |
| 94 | sanitizeCache reclaimable.Cache[string, string] |
| 95 | filter *spanfilter.SpanFilter |
| 96 | |
| 97 | filteredSpansCounter prometheus.Counter |
| 98 | metricDroppedSpans prometheus.Counter |
| 99 | metricDroppedEdges prometheus.Counter |
| 100 | metricDroppedSpanSideCacheOverflows prometheus.Counter |
| 101 | metricTotalEdges prometheus.Counter |
| 102 | metricExpiredEdges prometheus.Counter |
| 103 | invalidUTF8Counter prometheus.Counter |
| 104 | logger log.Logger |
| 105 | } |
| 106 | |
| 107 | func New(cfg Config, tenant string, reg registry.Registry, logger log.Logger, filteredSpansCounter, invalidUTF8Counter prometheus.Counter) (gen.Processor, error) { |
| 108 | if cfg.EnableVirtualNodeLabel { |
nothing calls this directly
no outgoing calls
no test coverage detected