Skip to content
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

Restore NewGRPCHandler method #4083

Merged
merged 4 commits into from
Apr 8, 2023

Conversation

vprithvi
Copy link
Contributor

@vprithvi vprithvi commented Dec 2, 2022

Signed-off-by: Prithvi Raj [email protected]

Which problem is this PR solving?

Short description of the changes

  • Add a NewGRPCHandler method. This method does not have the same signature as the previous method, so it is still breaking semver, but it provides a straightforward fix for users who which to customize the server.

@vprithvi vprithvi requested a review from a team as a code owner December 2, 2022 16:34
@vprithvi vprithvi requested a review from yurishkuro December 2, 2022 16:34
@vprithvi vprithvi closed this Dec 2, 2022
@vprithvi vprithvi reopened this Dec 2, 2022
@codecov
Copy link

codecov bot commented Dec 2, 2022

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 🎉

Comparison is base (351982a) 97.07% compared to head (e2c88eb) 97.08%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4083      +/-   ##
==========================================
+ Coverage   97.07%   97.08%   +0.01%     
==========================================
  Files         300      300              
  Lines       17701    17715      +14     
==========================================
+ Hits        17183    17199      +16     
+ Misses        416      415       -1     
+ Partials      102      101       -1     
Flag Coverage Δ
unittests 97.08% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmd/query/app/grpc_handler.go 98.78% <100.00%> (+0.09%) ⬆️
cmd/query/app/server.go 94.57% <100.00%> (-0.08%) ⬇️

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

if options.Tracer == nil {
options.Tracer = opentracing.NoopTracer{}
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a test that passes empty options struct and validates that all 3 fields are not-nil in the result

logger: logger,
tracer: tracer,
nowFn: func() time.Time {
grpcHandler := NewGRPCHandler(q, mq, GRPCHandlerOptions{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to actually use the func to prevent it from being deleted

@yurishkuro yurishkuro enabled auto-merge (squash) April 8, 2023 14:40
@yurishkuro yurishkuro merged commit 12e44fa into jaegertracing:main Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: cmd/query/app.NewGRPCHandler removed without alternatives
2 participants