Package io.opencensus.contrib.http.util
Class HttpMeasureConstants
- java.lang.Object
-
- io.opencensus.contrib.http.util.HttpMeasureConstants
-
-
Field Summary
Fields Modifier and Type Field Description static TagKeyHTTP_CLIENT_HOSTTagKeyfor the value of the client-side HTTP host header.static TagKeyHTTP_CLIENT_METHODTagKeyfor the client-side HTTP method of the request, capitalized (GET, POST, etc.).static TagKeyHTTP_CLIENT_PATHTagKeyfor the client-side URL path (not including query string) in the request.static Measure.MeasureLongHTTP_CLIENT_RECEIVED_BYTESMeasurefor the client-side total bytes received in response bodies (not including headers but including error responses with bodies).static Measure.MeasureDoubleHTTP_CLIENT_ROUNDTRIP_LATENCYMeasurefor the client-side time between first byte of request headers sent to last byte of response received, or terminal error.static Measure.MeasureLongHTTP_CLIENT_SENT_BYTESMeasurefor the client-side total bytes sent in request body (not including headers).static TagKeyHTTP_CLIENT_STATUSTagKeyfor the numeric client-side HTTP response status code (e.g.static TagKeyHTTP_SERVER_HOSTTagKeyfor the value of the server-side HTTP host header.static Measure.MeasureDoubleHTTP_SERVER_LATENCYMeasurefor the server-side time between first byte of request headers received to last byte of response sent, or terminal error.static TagKeyHTTP_SERVER_METHODTagKeyfor the server-side HTTP method of the request, capitalized (GET, POST, etc.).static TagKeyHTTP_SERVER_PATHTagKeyfor the server-side URL path (not including query string) in the request.static Measure.MeasureLongHTTP_SERVER_RECEIVED_BYTESMeasurefor the server-side total bytes received in request body (not including headers).static TagKeyHTTP_SERVER_ROUTETagKeyfor the server-side logical route, a pattern that matched the URL, of a handler that processed the request.static Measure.MeasureLongHTTP_SERVER_SENT_BYTESMeasurefor the server-side total bytes sent in response bodies (not including headers but including error responses with bodies).static TagKeyHTTP_SERVER_STATUSTagKeyfor the numeric server-side HTTP response status code (e.g.private static java.lang.StringUNIT_LATENCY_MSprivate static java.lang.StringUNIT_SIZE_BYTE
-
Constructor Summary
Constructors Modifier Constructor Description privateHttpMeasureConstants()
-
-
-
Field Detail
-
UNIT_SIZE_BYTE
private static final java.lang.String UNIT_SIZE_BYTE
- See Also:
- Constant Field Values
-
UNIT_LATENCY_MS
private static final java.lang.String UNIT_LATENCY_MS
- See Also:
- Constant Field Values
-
HTTP_CLIENT_SENT_BYTES
public static final Measure.MeasureLong HTTP_CLIENT_SENT_BYTES
Measurefor the client-side total bytes sent in request body (not including headers). This is uncompressed bytes.- Since:
- 0.13
-
HTTP_CLIENT_RECEIVED_BYTES
public static final Measure.MeasureLong HTTP_CLIENT_RECEIVED_BYTES
Measurefor the client-side total bytes received in response bodies (not including headers but including error responses with bodies). Should be measured from actual bytes received and read, not the value of the Content-Length header. This is uncompressed bytes. Responses with no body should record 0 for this value.- Since:
- 0.13
-
HTTP_CLIENT_ROUNDTRIP_LATENCY
public static final Measure.MeasureDouble HTTP_CLIENT_ROUNDTRIP_LATENCY
Measurefor the client-side time between first byte of request headers sent to last byte of response received, or terminal error.- Since:
- 0.13
-
HTTP_SERVER_RECEIVED_BYTES
public static final Measure.MeasureLong HTTP_SERVER_RECEIVED_BYTES
Measurefor the server-side total bytes received in request body (not including headers). This is uncompressed bytes.- Since:
- 0.13
-
HTTP_SERVER_SENT_BYTES
public static final Measure.MeasureLong HTTP_SERVER_SENT_BYTES
Measurefor the server-side total bytes sent in response bodies (not including headers but including error responses with bodies). Should be measured from actual bytes written and sent, not the value of the Content-Length header. This is uncompressed bytes. Responses with no body should record 0 for this value.- Since:
- 0.13
-
HTTP_SERVER_LATENCY
public static final Measure.MeasureDouble HTTP_SERVER_LATENCY
Measurefor the server-side time between first byte of request headers received to last byte of response sent, or terminal error.- Since:
- 0.13
-
HTTP_CLIENT_HOST
public static final TagKey HTTP_CLIENT_HOST
TagKeyfor the value of the client-side HTTP host header.- Since:
- 0.13
-
HTTP_SERVER_HOST
public static final TagKey HTTP_SERVER_HOST
TagKeyfor the value of the server-side HTTP host header.- Since:
- 0.13
-
HTTP_CLIENT_STATUS
public static final TagKey HTTP_CLIENT_STATUS
TagKeyfor the numeric client-side HTTP response status code (e.g. 200, 404, 500). If a transport error occurred and no status code was read, use "error" as theTagValue.- Since:
- 0.13
-
HTTP_SERVER_STATUS
public static final TagKey HTTP_SERVER_STATUS
TagKeyfor the numeric server-side HTTP response status code (e.g. 200, 404, 500). If a transport error occurred and no status code was written, use "error" as theTagValue.- Since:
- 0.13
-
HTTP_CLIENT_PATH
public static final TagKey HTTP_CLIENT_PATH
TagKeyfor the client-side URL path (not including query string) in the request.- Since:
- 0.13
-
HTTP_SERVER_PATH
public static final TagKey HTTP_SERVER_PATH
TagKeyfor the server-side URL path (not including query string) in the request.- Since:
- 0.13
-
HTTP_CLIENT_METHOD
public static final TagKey HTTP_CLIENT_METHOD
TagKeyfor the client-side HTTP method of the request, capitalized (GET, POST, etc.).- Since:
- 0.13
-
HTTP_SERVER_METHOD
public static final TagKey HTTP_SERVER_METHOD
TagKeyfor the server-side HTTP method of the request, capitalized (GET, POST, etc.).- Since:
- 0.13
-
-