public class SpanHttpDeriverUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SpanHttpDeriverUtil.HttpCode |
| Modifier and Type | Method and Description |
|---|---|
static List<SpanHttpDeriverUtil.HttpCode> |
getClientOrServerErrors(List<SpanHttpDeriverUtil.HttpCode> httpCodes)
Method returns only client or sever http errors.
|
static String |
getHttpMethod(Span span)
Derives HTTP operation from Span's binary annotations.
|
static List<SpanHttpDeriverUtil.HttpCode> |
getHttpStatusCodes(List<BinaryAnnotation> binaryAnnotations)
Method returns list of http status codes.
|
static boolean |
isHttp(Span span)
This method determines whether the span is associated with
a HTTP communication.
|
public static List<SpanHttpDeriverUtil.HttpCode> getHttpStatusCodes(List<BinaryAnnotation> binaryAnnotations)
binaryAnnotations - zipkin binary annotationspublic static List<SpanHttpDeriverUtil.HttpCode> getClientOrServerErrors(List<SpanHttpDeriverUtil.HttpCode> httpCodes)
httpCodes - list of http codespublic static String getHttpMethod(Span span)
span - the spanpublic static boolean isHttp(Span span)
span - The spanCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.