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

Grpc plugin add #201

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

shihaodong8899
Copy link
Contributor

support for GRPC plugin injection, allowing client and server to inject delays and exceptions by service name, service host

@MandssS MandssS added this to the v1.7.3 milestone Jun 15, 2023
@MandssS MandssS requested review from MandssS and binbin0325 July 24, 2023 08:48
}

Object cmd = methodArguments[1];
Object stream = ReflectUtil.getFieldValue(cmd, "stream", false);
Copy link
Member

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,
Copy link
Member

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());
Copy link
Member

Choose a reason for hiding this comment

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

add BusinessParamsMatcherSpec

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.

4 participants