Skip to content

httpclient support skipPattern #595

@prefersimple

Description

@prefersimple

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();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions