-
Notifications
You must be signed in to change notification settings - Fork 1.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
[configgrpc] Deprecate GRPCServerSettings, use ServerConfig instead #9403
[configgrpc] Deprecate GRPCServerSettings, use ServerConfig instead #9403
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #9403 +/- ##
=======================================
Coverage 90.46% 90.46%
=======================================
Files 344 344
Lines 18024 18024
=======================================
Hits 16306 16306
Misses 1390 1390
Partials 328 328 ☔ View full report in Codecov by Sentry. |
config/configgrpc/configgrpc.go
Outdated
type GRPCServerSettings = GRPCServerConfig | ||
|
||
// GRPCServerConfig defines common settings for a gRPC server configuration. | ||
type GRPCServerConfig struct { |
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.
qq: Should we also make this ServerConfig
since it will be used as configgrpc.ServerConfig
? I personally like the shorter name.
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.
Even configgrpc.Server
seems clear enough to me, since config is also redundant.
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.
I like configgrpc.ServerConfig
. configgrpc.Server
sounds a bit unclear.
@open-telemetry/collector-approvers WDYT?
We already did this change to confighttp
. If we think that it's a good option we should drop HTTP
from HTTPServerConfig
and HTTPServerConfig
before the next release
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.
ServerConfig
makes more sense to me, it's weird to have a ToServer
method on a struct called Server
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.
I also like configgrcp.ServerConfig
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.
That an implementation detail for that receiver not for this thread.
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.
It's actually part of this PR so we need to decide
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.
Pushing GRPCServerConfig -> ServerConfig
now.
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.
Oh, I was wrong this doesn't introduce the breaking chance since ServerConfig
isn't embedded in this receiver. So no more changes are needed
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.
I pushed a PR to update confighttp accordingly #9453
Putting the blocker label to avoid breaking the merged HTTP configs again after the discussion is resolved |
29b4926
to
98f9962
Compare
Following discussion #9403 (comment)
Description:
Deprecate GRPCServerSettings, use
GRPCServerConfig insteadLink to tracking Issue:
#6767