Interface HttpCommonAttributesGetter<REQUEST,RESPONSE>
- All Known Subinterfaces:
HttpClientAttributesGetter<REQUEST,,RESPONSE> HttpServerAttributesGetter<REQUEST,RESPONSE>
-
Method Summary
Modifier and TypeMethodDescriptionrequestContentLength(REQUEST request, RESPONSE response) Extracts thehttp.request_content_lengthspan attribute.requestContentLengthUncompressed(REQUEST request, RESPONSE response) Extracts thehttp.request_content_length_uncompressedspan attribute.requestHeader(REQUEST request, String name) Extracts all values of header namednamefrom the request, or an empty list if there were none.responseContentLength(REQUEST request, RESPONSE response) Extracts thehttp.response_content_lengthspan attribute.responseContentLengthUncompressed(REQUEST request, RESPONSE response) Extracts thehttp.response_content_length_uncompressedspan attribute.responseHeader(REQUEST request, RESPONSE response, String name) Extracts all values of header namednamefrom the response, or an empty list if there were none.statusCode(REQUEST request, RESPONSE response) Extracts thehttp.status_codespan attribute.
-
Method Details
-
method
-
requestHeader
Extracts all values of header namednamefrom the request, or an empty list if there were none.Implementations of this method must not return a null value; an empty list should be returned instead.
-
requestContentLength
Extracts thehttp.request_content_lengthspan attribute.This is called from
Instrumenter.end(Context, Object, Object, Throwable), whetherresponseisnullor not. -
requestContentLengthUncompressed
Extracts thehttp.request_content_length_uncompressedspan attribute.This is called from
Instrumenter.end(Context, Object, Object, Throwable), whetherresponseisnullor not. -
statusCode
Extracts thehttp.status_codespan attribute.This is called from
Instrumenter.end(Context, Object, Object, Throwable), only whenresponseis non-null. -
responseContentLength
Extracts thehttp.response_content_lengthspan attribute.This is called from
Instrumenter.end(Context, Object, Object, Throwable), only whenresponseis non-null. -
responseContentLengthUncompressed
Extracts thehttp.response_content_length_uncompressedspan attribute.This is called from
Instrumenter.end(Context, Object, Object, Throwable), only whenresponseis non-null. -
responseHeader
Extracts all values of header namednamefrom the response, or an empty list if there were none.This is called from
Instrumenter.end(Context, Object, Object, Throwable), only whenresponseis non-null.Implementations of this method must not return a null value; an empty list should be returned instead.
-