public abstract class HttpServerAdapter<Req,Resp> extends HttpAdapter<Req,Resp>
| Constructor | Description |
|---|---|
HttpServerAdapter() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
parseClientAddress(Req req,
zipkin2.Endpoint.Builder builder) |
Deprecated.
parseClientIpAndPort(Req, brave.Span) addresses this functionality. This will be removed in
Brave v6. |
boolean |
parseClientIpAndPort(Req req,
Span span) |
Used by
HttpServerHandler.handleReceive(TraceContext.Extractor, Object, Object) to add
remote socket information about the client. |
boolean |
parseClientIpFromXForwardedFor(Req req,
Span span) |
Returns the first value in the "X-Forwarded-For" header, or null if not present.
|
method, methodFromResponse, path, requestHeader, route, statusCode, statusCodeAsInt, url@Deprecated public boolean parseClientAddress(Req req, zipkin2.Endpoint.Builder builder)
parseClientIpAndPort(Req, brave.Span) addresses this functionality. This will be removed in
Brave v6.public boolean parseClientIpAndPort(Req req, Span span)
HttpServerHandler.handleReceive(TraceContext.Extractor, Object, Object) to add
remote socket information about the client. By default, this tries to parse the forwarded IP. Override to add client socket
information when forwarded info is not available.
Aside: the ability to parse socket information on server request objects is likely even if it is not as likely on the client side. This is because client requests are often parsed before a network route is chosen, whereas server requests are parsed after the network layer.
Copyright © 2018 OpenZipkin. All rights reserved.