-
Notifications
You must be signed in to change notification settings - Fork 190
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
Conversation
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>
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.
Just a few small changes required to get CI passing.
Otherwise LGTM, thank you for the PR!
module/apmgrpc/ignorer_test.go
Outdated
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
"go.elastic.co/apm/module/apmgrpc" |
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.
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.
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 Report
@@ 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
Continue to review full report at Codecov.
|
Thank you for your contribution, @omrishtam! |
Add
func WithServerRequestIgnorer(r RequestIgnorerFunc) ServerOption
for ignoring gRPC methods, as described in #530.