Class HttpExtractor<Q,P>
java.lang.Object
io.opencensus.contrib.http.HttpExtractor<Q,P>
- Type Parameters:
Q- the HTTP request entity.P- the HTTP response entity.
- Direct Known Subclasses:
JaxrsClientExtractor, JaxrsContainerExtractor, OcHttpServletExtractor, OcJettyHttpClientExtractor
An adaptor to extract information from request and response.
This class provides no-op implementations by default.
Please refer to this document for more information about the HTTP attributes recorded in Open Census.
- Since:
- 0.19
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringReturns the request URL host.abstract StringReturns the request method.abstract StringReturns the request URL path.abstract StringReturns the request route.abstract intgetStatusCode(P response) Returns the response status code.abstract StringReturns the request URL.abstract StringgetUserAgent(Q request) Returns the request user agent.
-
Constructor Details
-
HttpExtractor
public HttpExtractor()
-
-
Method Details
-
getRoute
-
getUrl
-
getHost
-
getMethod
-
getPath
-
getUserAgent
-
getStatusCode
-