Class UndertowActiveHandlers
- java.lang.Object
-
- io.opentelemetry.javaagent.instrumentation.api.undertow.UndertowActiveHandlers
-
public final class UndertowActiveHandlers extends Object
Helper container for keeping track of request processing state in undertow.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intdecrementAndGet(io.opentelemetry.context.Context context)Decrement counter.static voidincrement(io.opentelemetry.context.Context context)Increment counter.static io.opentelemetry.context.Contextinit(io.opentelemetry.context.Context context, int initialValue)Attach to context.
-
-
-
Method Detail
-
init
public static io.opentelemetry.context.Context init(io.opentelemetry.context.Context context, int initialValue)Attach to context.- Parameters:
context- server contextinitialValue- initial value for counter- Returns:
- new context
-
increment
public static void increment(io.opentelemetry.context.Context context)
Increment counter.- Parameters:
context- server context
-
decrementAndGet
public static int decrementAndGet(io.opentelemetry.context.Context context)
Decrement counter.- Parameters:
context- server context- Returns:
- value of counter after decrementing it
-
-