diff --git a/cmd/perfstand/account_create/main.go b/cmd/perfstand/account_create/main.go index c82b4069e..f5e8029e8 100644 --- a/cmd/perfstand/account_create/main.go +++ b/cmd/perfstand/account_create/main.go @@ -74,7 +74,7 @@ func iterate(prep *input, result internal.PerfResult) error { return err } - err = internal.ExecuteCommand(internal.GrpcMetricsSetParameters()) + err = internal.ExecuteCommand(internal.GrpcInitialSetParameters()) if err != nil { return err } diff --git a/cmd/perfstand/account_select/main.go b/cmd/perfstand/account_select/main.go index 092dcd6c5..3008bec99 100644 --- a/cmd/perfstand/account_select/main.go +++ b/cmd/perfstand/account_select/main.go @@ -80,7 +80,7 @@ func iterate(prep *input, result internal.PerfResult) error { } grpcurlCommands := []internal.Command{ - {internal.GrpcMetricsSetParameters(), ""}, + {internal.GrpcInitialSetParameters(), ""}, {internal.GrpcWalletRecover(prep.Workspace, prep.Mnemonic), ""}, {internal.GrpcWalletCreateSession(prep.Mnemonic), ""}, accountSelect(prep), diff --git a/cmd/perfstand/internal/util.go b/cmd/perfstand/internal/util.go index 451c472ac..646bf36d0 100644 --- a/cmd/perfstand/internal/util.go +++ b/cmd/perfstand/internal/util.go @@ -169,11 +169,11 @@ func GrpcAccountCreate(workspace, networkMode, staging string) string { }' localhost:31007 anytype.ClientCommands.AccountCreate` } -func GrpcMetricsSetParameters() string { +func GrpcInitialSetParameters() string { return `grpcurl -import-path ../anytype-heart/ -proto pb/protos/service/service.proto -plaintext -d '{ "platform": "test", "version": "0.0.0-test" - }' localhost:31007 anytype.ClientCommands.MetricsSetParameters` + }' localhost:31007 anytype.ClientCommands.InitialSetParameters` } func StartAnytypeBackground() error { diff --git a/cmd/perftester/main.go b/cmd/perftester/main.go index 99d82b1d0..22abadfe8 100644 --- a/cmd/perftester/main.go +++ b/cmd/perftester/main.go @@ -99,7 +99,7 @@ func makeIteration() error { `grpcurl -import-path ../anytype-heart/ -proto pb/protos/service/service.proto -plaintext -d '{ "platform": "test", "version": "0.0.0-test" - }' localhost:31007 anytype.ClientCommands.MetricsSetParameters`, + }' localhost:31007 anytype.ClientCommands.InitialSetParameters`, `grpcurl -import-path ../anytype-heart/ -proto pb/protos/service/service.proto -plaintext -d '{ "rootPath": "` + testRootPath + `", diff --git a/core/application/application.go b/core/application/application.go index 7ce55b06d..f934d194c 100644 --- a/core/application/application.go +++ b/core/application/application.go @@ -50,7 +50,7 @@ func (s *Service) GetApp() *app.App { func (s *Service) requireClientWithVersion() { if s.clientWithVersion == "" { - panic(errors.New("client platform with the version must be set using the MetricsSetParameters method")) + panic(errors.New("client platform with the version must be set using the InitialSetParameters method")) } } diff --git a/metrics/interceptors.go b/metrics/interceptors.go index 4794fa5ee..466a5e3de 100644 --- a/metrics/interceptors.go +++ b/metrics/interceptors.go @@ -38,7 +38,7 @@ var excludedMethods = []string{ "ObjectSearchSubscribe", "ObjectSearchUnsubscribe", "ObjectSubscribeIds", - "MetricsSetParameters", + "InitialSetParameters", "AppSetDeviceState", }