public enum CaptureMode extends java.lang.Enum<CaptureMode>
| Enum Constant and Description |
|---|
DISABLED
Disables annotation to capture both response and error from the method.
|
ENVIRONMENT_VAR
Enables/Disables annotation to capture response and error from the method based on the value of
environment variable POWERTOOLS_TRACER_CAPTURE_RESPONSE and POWERTOOLS_TRACER_CAPTURE_ERROR
|
ERROR
Enabled annotation to capture only error from the method.
|
RESPONSE
Enables annotation to capture only response.
|
RESPONSE_AND_ERROR
Enabled annotation to capture both response error from the method.
|
| Modifier and Type | Method and Description |
|---|---|
static CaptureMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CaptureMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CaptureMode RESPONSE
Tracing annotation, it will override value of environment variable POWERTOOLS_TRACER_CAPTURE_RESPONSEpublic static final CaptureMode ERROR
Tracing annotation, it will override value of environment variable POWERTOOLS_TRACER_CAPTURE_ERRORpublic static final CaptureMode RESPONSE_AND_ERROR
Tracing annotation, it will override value of environment variables POWERTOOLS_TRACER_CAPTURE_RESPONSE
and POWERTOOLS_TRACER_CAPTURE_ERRORpublic static final CaptureMode DISABLED
Tracing annotation, it will override values of environment variable POWERTOOLS_TRACER_CAPTURE_RESPONSE
and POWERTOOLS_TRACER_CAPTURE_ERRORpublic static final CaptureMode ENVIRONMENT_VAR
public static CaptureMode[] values()
for (CaptureMode c : CaptureMode.values()) System.out.println(c);
public static CaptureMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2023. All rights reserved.