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

Add CLI Option for gRPC Max Receive Message Size #3214

Conversation

js8080
Copy link
Contributor

@js8080 js8080 commented Aug 17, 2021

Which problem is this PR solving?

Resolves #3210

Short description of the changes

Added a new CLI option for the gRPC Collector to override the default
max receive message size which is normally 4MB since some users of
Jaeger may want to record Spans which exceed the default max size.

Signed-off-by: Justin Stauffer [email protected]

Added a new CLI option for the gRPC Collector to override the default
max receive message size which is normally 4MB since some users of
Jaeger may want to record Spans which exceed the default max size.

Signed-off-by: Justin Stauffer <[email protected]>
Changed collector.grpc-max-receive-message-length to
collector.grpc.max-receive-message-length for consistency.

Signed-off-by: Justin Stauffer <[email protected]>
Changes new option from `collector.grpc.max-receive-message-length` to
`collector.grpc-server.max-message-size` as suggested during review.

Signed-off-by: Justin Stauffer <[email protected]>
@codecov
Copy link

codecov bot commented Aug 17, 2021

Codecov Report

Merging #3214 (ca68f5a) into master (2a4aeb3) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3214      +/-   ##
==========================================
+ Coverage   95.90%   95.95%   +0.04%     
==========================================
  Files         242      242              
  Lines       14786    14794       +8     
==========================================
+ Hits        14181    14195      +14     
+ Misses        525      518       -7     
- Partials       80       81       +1     
Impacted Files Coverage Δ
cmd/collector/app/options.go 100.00% <ø> (ø)
cmd/collector/app/builder_flags.go 100.00% <100.00%> (ø)
cmd/collector/app/collector.go 76.04% <100.00%> (+0.25%) ⬆️
cmd/collector/app/server/grpc.go 85.00% <100.00%> (+19.28%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a4aeb3...ca68f5a. Read the comment docs.

Added a test that hopefully adds necessary code coverage for the
gRPC collector code around the TLS options.

Signed-off-by: Justin Stauffer <[email protected]>
Changed my previous new test to only test the GRPC Server Startup.

Signed-off-by: Justin Stauffer <[email protected]>
@js8080
Copy link
Contributor Author

js8080 commented Aug 17, 2021

@Ashmita152 I made this new PR as suggested. @yurishkuro this includes the changes you suggested in my old, closed PR. I also added another very basic test as I was getting errors from lack of code coverage. I'm not a Go expert so I'm not quite sure how that test can be improved though I don't doubt it could be.

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

lgtm

@yurishkuro yurishkuro enabled auto-merge (squash) August 17, 2021 19:00
@yurishkuro yurishkuro merged commit 10c5743 into jaegertracing:master Aug 17, 2021
@jpkrohling jpkrohling added this to the v1.26.0 milestone Aug 23, 2021
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.

gRPC Collector Does Not Support Configurable Max Message Size
3 participants