Interface ClientSpanDecorator
-
public interface ClientSpanDecorator- Author:
- Pavol Loffay
-
-
Field Summary
Fields Modifier and Type Field Description static ClientSpanDecoratorHTTP_PATH_OPERATION_NAMEAs operation name provides HTTP path.static ClientSpanDecoratorSTANDARD_TAGSAdds standard tags:Tags.SPAN_KIND,Tags.PEER_HOSTNAME,Tags.PEER_PORT,Tags.HTTP_METHOD,Tags.HTTP_URLandTags.HTTP_STATUS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddecorateRequest(jakarta.ws.rs.client.ClientRequestContext requestContext, io.opentracing.Span span)Decorate get by incoming object.voiddecorateResponse(jakarta.ws.rs.client.ClientResponseContext responseContext, io.opentracing.Span span)Decorate spans by outgoing object.
-
-
-
Field Detail
-
STANDARD_TAGS
static final ClientSpanDecorator STANDARD_TAGS
Adds standard tags:Tags.SPAN_KIND,Tags.PEER_HOSTNAME,Tags.PEER_PORT,Tags.HTTP_METHOD,Tags.HTTP_URLandTags.HTTP_STATUS
-
HTTP_PATH_OPERATION_NAME
static final ClientSpanDecorator HTTP_PATH_OPERATION_NAME
As operation name provides HTTP path. If there are path parameters used in URL then spans for the same requests would have different operation names, therefore use carefully.
-
-
Method Detail
-
decorateRequest
void decorateRequest(jakarta.ws.rs.client.ClientRequestContext requestContext, io.opentracing.Span span)Decorate get by incoming object.- Parameters:
requestContext-span-
-
decorateResponse
void decorateResponse(jakarta.ws.rs.client.ClientResponseContext responseContext, io.opentracing.Span span)Decorate spans by outgoing object.- Parameters:
responseContext-span-
-
-