Class HttpRouteState
java.lang.Object
io.opentelemetry.instrumentation.api.internal.HttpRouteState
- All Implemented Interfaces:
io.opentelemetry.context.ImplicitContextKeyed
public final class HttpRouteState
extends Object
implements io.opentelemetry.context.ImplicitContextKeyed
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpRouteStatestatic HttpRouteStatestatic HttpRouteStatefromContextOrNull(io.opentelemetry.context.Context context) getRoute()io.opentelemetry.api.trace.SpangetSpan()intio.opentelemetry.context.ContextstoreInContext(io.opentelemetry.context.Context context) voidstatic voidupdateSpan(io.opentelemetry.context.Context context, io.opentelemetry.api.trace.Span span) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.opentelemetry.context.ImplicitContextKeyed
makeCurrent
-
Method Details
-
fromContextOrNull
-
updateSpan
public static void updateSpan(io.opentelemetry.context.Context context, io.opentelemetry.api.trace.Span span) -
create
public static HttpRouteState create(@Nullable String method, @Nullable String route, int updatedBySourceOrder) -
create
-
storeInContext
public io.opentelemetry.context.Context storeInContext(io.opentelemetry.context.Context context) - Specified by:
storeInContextin interfaceio.opentelemetry.context.ImplicitContextKeyed
-
getMethod
-
getUpdatedBySourceOrder
public int getUpdatedBySourceOrder() -
getRoute
-
getSpan
-
update
public void update(io.opentelemetry.context.Context context, int updatedBySourceOrder, String route)
-