| 51 | } |
| 52 | |
| 53 | type Engine struct { |
| 54 | prometheusEngine *promql.Engine |
| 55 | thanosEngine *thanosengine.Engine |
| 56 | |
| 57 | fallbackQueriesTotal prometheus.Counter |
| 58 | engineSwitchQueriesTotal *prometheus.CounterVec |
| 59 | } |
| 60 | |
| 61 | func New(opts promql.EngineOpts, thanosEngineCfg ThanosEngineConfig, reg prometheus.Registerer) *Engine { |
| 62 | prometheusEngine := promql.NewEngine(opts) |
nothing calls this directly
no outgoing calls
no test coverage detected