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

apmgrpc: Add WithServerRequestIgnorer Server Option #531

Merged
merged 8 commits into from
May 23, 2019

Conversation

omrishtam
Copy link
Contributor

Add func WithServerRequestIgnorer(r RequestIgnorerFunc) ServerOption for ignoring gRPC methods, as described in #530.

Signed-off-by: Omri Shtamberger <omrishtam@gmail.com>
Signed-off-by: Omri Shtamberger <omrishtam@gmail.com>
…Ignorer param type

Signed-off-by: Omri Shtamberger <omrishtam@gmail.com>
Copy link
Member

@axw axw left a comment

Choose a reason for hiding this comment

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

Just a few small changes required to get CI passing.
Otherwise LGTM, thank you for the PR!

module/apmgrpc/ignorer.go Show resolved Hide resolved
module/apmgrpc/ignorer_test.go Show resolved Hide resolved
module/apmgrpc/ignorer_test.go Outdated Show resolved Hide resolved
"testing"

"github.com/stretchr/testify/assert"
"go.elastic.co/apm/module/apmgrpc"
Copy link
Member

Choose a reason for hiding this comment

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

Move this line to its own block below, otherwise the "goimports" check will fail.

You can use make check goimports to check your changes before pushing, or make fmt to apply the formatting rules.

omrishtam and others added 5 commits May 22, 2019 12:00
Co-Authored-By: Andrew Wilkins <axwalk@gmail.com>
Co-Authored-By: Andrew Wilkins <axwalk@gmail.com>
Co-Authored-By: Andrew Wilkins <axwalk@gmail.com>
Signed-off-by: Omri Shtamberger <omrishtam@gmail.com>
@codecov-io
Copy link

Codecov Report

Merging #531 into master will increase coverage by <.01%.
The diff coverage is 77.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #531      +/-   ##
==========================================
+ Coverage   84.13%   84.14%   +<.01%     
==========================================
  Files         115      116       +1     
  Lines        6757     6772      +15     
==========================================
+ Hits         5685     5698      +13     
- Misses        767      768       +1     
- Partials      305      306       +1
Impacted Files Coverage Δ
module/apmgrpc/ignorer.go 77.77% <77.77%> (ø)
module/apmgrpc/server.go 93.65% <77.77%> (+0.66%) ⬆️

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 47cc289...88e2664. Read the comment docs.

@axw axw merged commit 5e8f234 into elastic:master May 23, 2019
@axw
Copy link
Member

axw commented May 23, 2019

Thank you for your contribution, @omrishtam!

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.

None yet

3 participants