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

@ -120,6 +120,10 @@ func (p *grpcPlugin) IsDecommissioned() bool {
return p.decommissioned
}
func (p *grpcPlugin) Target() backendplugin.Target {
return backendplugin.TargetLocal
}
func (p *grpcPlugin) getPluginClient() (pluginClient, bool) {
p.mutex.RLock()
if p.client == nil || p.client.Exited() || p.pluginClient == nil {