-
Notifications
You must be signed in to change notification settings - Fork 218
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
Grpc plugin add #201
base: master
Are you sure you want to change the base?
Grpc plugin add #201
Conversation
Signed-off-by: shihaodong8899 <[email protected]>
Signed-off-by: shihaodong8899 <[email protected]>
} | ||
|
||
Object cmd = methodArguments[1]; | ||
Object stream = ReflectUtil.getFieldValue(cmd, "stream", false); |
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.
string can use constants
private static final Logger LOGGER = LoggerFactory.getLogger(GrpcClientEnhancer.class); | ||
|
||
@Override | ||
public EnhancerModel doBeforeAdvice(ClassLoader classLoader, String className, Object object, |
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.
grpc supports service parameter(b-params) matching
matcherSpecs.add(new GrpcServerMatcherSpec()); | ||
matcherSpecs.add(new GrpcClientMatcherSpec()); | ||
matcherSpecs.add(new GrpcMethodMatcherSpec()); | ||
matcherSpecs.add(new GrpcRemoteAddressMatcherSpec()); |
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.
add BusinessParamsMatcherSpec
support for GRPC plugin injection, allowing client and server to inject delays and exceptions by service name, service host