Skip to content

Commit

Permalink
change service finder with .*
Browse files Browse the repository at this point in the history
Signed-off-by: Ash <[email protected]>
  • Loading branch information
iutx committed Sep 23, 2024
1 parent b975928 commit d97d9b3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
package collector

import (
"strings"

"github.com/erda-project/erda-infra/base/logs"
"github.com/erda-project/erda-infra/base/servicehub"
"github.com/erda-project/erda-infra/providers/httpserver"
Expand Down Expand Up @@ -97,7 +99,7 @@ func init() {
Description: "here is description of erda.oap.collector.receiver.collector",
DependenciesFunc: func(hub *servicehub.Hub) (list []string) {
hub.ForeachServices(func(service string) bool {
if service == "erda.oap.collector.authentication.Validator" {
if strings.HasPrefix(service, "erda.oap.collector.authentication.") {
list = append(list, service)

Check warning on line 103 in internal/tools/monitor/oap/collector/plugins/receivers/collector/provider.go

View check run for this annotation

Codecov / codecov/patch

internal/tools/monitor/oap/collector/plugins/receivers/collector/provider.go#L101-L103

Added lines #L101 - L103 were not covered by tests
}
return true

Check warning on line 105 in internal/tools/monitor/oap/collector/plugins/receivers/collector/provider.go

View check run for this annotation

Codecov / codecov/patch

internal/tools/monitor/oap/collector/plugins/receivers/collector/provider.go#L105

Added line #L105 was not covered by tests
Expand Down

0 comments on commit d97d9b3

Please sign in to comment.