Class AppServerBridge
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.servlet.AppServerBridge
-
public class AppServerBridge extends Object
Helper container for Context attributes for transferring certain information between servlet integration and app-server server handler integrations.
-
-
Constructor Summary
Constructors Constructor Description AppServerBridge()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.opentelemetry.context.Contextinit(io.opentelemetry.context.Context ctx)static booleanisPresent(io.opentelemetry.context.Context ctx)Check whether given context contains AppServerBridge.static booleanisServerSpanNameUpdatedFromServlet(io.opentelemetry.context.Context ctx)Returns true, if servlet integration has indicated, that it has updated the name for the server span.static voidsetServletUpdatedServerSpanName(io.opentelemetry.context.Context ctx, boolean value)Indicate that the servlet integration has updated the name for the server span.
-
-
-
Method Detail
-
init
public static io.opentelemetry.context.Context init(io.opentelemetry.context.Context ctx)
-
isPresent
public static boolean isPresent(io.opentelemetry.context.Context ctx)
Check whether given context contains AppServerBridge.- Parameters:
ctx- server context- Returns:
trueif AppServerBridge is present in the context.falseotherwise.
-
isServerSpanNameUpdatedFromServlet
public static boolean isServerSpanNameUpdatedFromServlet(io.opentelemetry.context.Context ctx)
Returns true, if servlet integration has indicated, that it has updated the name for the server span.- Parameters:
ctx- server context- Returns:
true, if the server span name was updated by servlet integration, orfalseotherwise.
-
setServletUpdatedServerSpanName
public static void setServletUpdatedServerSpanName(io.opentelemetry.context.Context ctx, boolean value)Indicate that the servlet integration has updated the name for the server span.- Parameters:
ctx- server context
-
-