Plugins: Add backend target to instrumentation (#61980)

* add target

* fix test
This commit is contained in:
Will Browne
2023-01-24 16:18:34 +01:00
committed by GitHub
parent 6e126596e0
commit 958eea2f78
7 changed files with 68 additions and 18 deletions

View File

@ -64,6 +64,10 @@ func (cp *corePlugin) IsDecommissioned() bool {
return false
}
func (cp *corePlugin) Target() backendplugin.Target {
return backendplugin.TargetInMemory
}
func (cp *corePlugin) CollectMetrics(_ context.Context, _ *backend.CollectMetricsRequest) (*backend.CollectMetricsResult, error) {
return nil, backendplugin.ErrMethodNotImplemented
}