public static class BeelineServletFilter.Builder extends Object
BeelineServletFilter| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | Description |
|---|---|---|
BeelineServletFilter |
build() |
|
BeelineServletFilter.Builder |
setBeeline(Beeline beeline) |
Set the Beeline.
|
BeelineServletFilter.Builder |
setExcludePaths(List<String> excludePaths) |
Set the Ant patterns for matching requests to exclude when tracing.
|
BeelineServletFilter.Builder |
setIncludePaths(List<String> includePaths) |
Set the Ant patterns for matching requests to include when tracing.
|
BeelineServletFilter.Builder |
setPathMatcher(PathMatcher pathMatcher) |
Set the path matcher to use when matching on request paths.
|
BeelineServletFilter.Builder |
setRequestToRedispatchSpanName(Function<javax.servlet.http.HttpServletRequest,String> requestToRedispatchSpanName) |
Sets the function to use when creating redispatch span names.
|
BeelineServletFilter.Builder |
setRequestToSpanName(Function<HttpServerRequestAdapter,String> requestToSpanName) |
Sets the function to use when creating request span names.
|
BeelineServletFilter.Builder |
setServiceName(String serviceName) |
Set the name of the service using the filter.
|
public BeelineServletFilter.Builder setServiceName(String serviceName)
serviceName - the name of the service using the filterpublic BeelineServletFilter.Builder setBeeline(Beeline beeline)
beeline - the beelinepublic BeelineServletFilter.Builder setIncludePaths(List<String> includePaths)
Optional. By default all requests are included.
includePaths - the Ant patterns for matching requests to includepublic BeelineServletFilter.Builder setExcludePaths(List<String> excludePaths)
Optional. By default no requests are excluded.
excludePaths - the Ant patterns for matching requests to excludepublic BeelineServletFilter.Builder setPathMatcher(PathMatcher pathMatcher)
Optional. Defaults to AntPathMatcher.
pathMatcher - the path matcherpublic BeelineServletFilter.Builder setRequestToRedispatchSpanName(Function<javax.servlet.http.HttpServletRequest,String> requestToRedispatchSpanName)
Optional. By default uses BeelineServletFilter.DEFAULT_REDISPATCH_SPAN_NAMING_FUNCTION.
requestToRedispatchSpanName - the function to use when creating redispatch span namespublic BeelineServletFilter.Builder setRequestToSpanName(Function<HttpServerRequestAdapter,String> requestToSpanName)
Optional. By default uses BeelineServletFilter.DEFAULT_REQUEST_SPAN_NAMING_FUNCTION.
requestToSpanName - the function to use when creating request span namespublic BeelineServletFilter build()
Copyright © 2019–2020 Honeycomb. All rights reserved.