-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code fixes to use new grpc api #5335
Conversation
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.62.1 to 1.63.0. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.62.1...v1.63.0) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: danish siddiqui <danishsiddiqui040@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5335 +/- ##
===========================================
- Coverage 95.24% 45.26% -49.99%
===========================================
Files 340 212 -128
Lines 16672 10989 -5683
===========================================
- Hits 15879 4974 -10905
- Misses 603 5563 +4960
- Partials 190 452 +262
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -81,7 +81,8 @@ func createProcessor(t *testing.T, mFactory metrics.Factory, tFactory thrift.TPr | |||
|
|||
func initCollectorAndReporter(t *testing.T) (*metricstest.Factory, *testutils.GrpcCollector, reporter.Reporter, *grpc.ClientConn) { | |||
grpcCollector := testutils.StartGRPCCollector(t) | |||
conn, err := grpc.Dial(grpcCollector.Listener().Addr().String(), grpc.WithTransportCredentials(insecure.NewCredentials())) | |||
conn, err := grpc.NewClient(grpcCollector.Listener().Addr().String(), grpc.WithTransportCredentials(insecure.NewCredentials())) | |||
grpc.NewClient(grpcCollector.Listener().Addr().String(), grpc.WithTransportCredentials(insecure.NewCredentials())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Twice?
proto-gen/api_v2/sampling.pb.go
Outdated
@@ -507,7 +507,7 @@ func (c *samplingManagerClient) GetSamplingStrategy(ctx context.Context, in *Sam | |||
out := new(SamplingStrategyResponse) | |||
err := c.cc.Invoke(ctx, "/jaeger.api_v2.SamplingManager/GetSamplingStrategy", in, out, opts...) | |||
if err != nil { | |||
return nil, err | |||
return nil, fmt.Errorf("Error while dialing: %w",err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is autogenerated file, please revert
@@ -149,8 +149,8 @@ func TestGRPCStorageFactory(t *testing.T) { | |||
|
|||
func TestGRPCStorageFactoryWithConfig(t *testing.T) { | |||
cfg := grpcConfig.Configuration{} | |||
_, err := NewFactoryWithConfig(cfg, metrics.NullFactory, zap.NewNop()) | |||
require.ErrorContains(t, err, "grpc-plugin builder failed to create a store: error connecting to remote storage") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not equivalent change
return s.client.GetSamplingStrategy(ctx, &api_v2.SamplingStrategyParameters{ServiceName: serviceName}) | ||
resp, err := s.client.GetSamplingStrategy(ctx, &api_v2.SamplingStrategyParameters{ServiceName: serviceName}) | ||
if err != nil { | ||
return nil, fmt.Errorf("our internal message/explanation: %w", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return nil, fmt.Errorf("our internal message/explanation: %w", err) | |
return nil, fmt.Errorf("failed to get sampling strategies: %w", err) |
this can be improved
fixed in #5336 |
Which problem is this PR solving?
Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test