public interface ServerSpanDecorator
| Modifier and Type | Field and Description |
|---|---|
static ServerSpanDecorator |
HTTP_WILDCARD_PATH_OPERATION_NAME
As operation name provides "wildcard" HTTP path e.g:
resource method annotated with @Path("/foo/bar/{name: \\w+}") produces "/foo/bar/{name}"
|
static ServerSpanDecorator |
STANDARD_TAGS
Adds standard tags:
Tags.SPAN_KIND,
Tags.HTTP_METHOD, Tags.HTTP_URL and
Tags.HTTP_STATUS |
| Modifier and Type | Method and Description |
|---|---|
void |
decorateRequest(javax.ws.rs.container.ContainerRequestContext requestContext,
io.opentracing.BaseSpan<?> span)
Decorate span by incoming object.
|
void |
decorateResponse(javax.ws.rs.container.ContainerResponseContext responseContext,
io.opentracing.BaseSpan<?> span)
Decorate spans by outgoing object.
|
static final ServerSpanDecorator STANDARD_TAGS
Tags.SPAN_KIND,
Tags.HTTP_METHOD, Tags.HTTP_URL and
Tags.HTTP_STATUSstatic final ServerSpanDecorator HTTP_WILDCARD_PATH_OPERATION_NAME
void decorateRequest(javax.ws.rs.container.ContainerRequestContext requestContext,
io.opentracing.BaseSpan<?> span)
requestContext - span - void decorateResponse(javax.ws.rs.container.ContainerResponseContext responseContext,
io.opentracing.BaseSpan<?> span)
responseContext - span - Copyright © 2017. All rights reserved.