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

httpclient support skipPattern #595

Open
prefersimple opened this issue Aug 28, 2020 · 0 comments
Open

httpclient support skipPattern #595

prefersimple opened this issue Aug 28, 2020 · 0 comments

Comments

@prefersimple
Copy link

We using this project in our APM now. When using rule of httpclient, we need to skip some URL which is not cared, so we want to support skipPattern which is similar to the implement of 'servlet'.

public static boolean isTraced(final HttpRequest httpRequest) {
if (skipPattern == null)
return true;
final String url = httpRequest.getRequestLine().getUri();
return !skipPattern.matcher(url).matches();
}

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

No branches or pull requests

1 participant