Package org.opensearch.action.search
Class SearchRequestSlowLog
java.lang.Object
org.opensearch.action.search.SearchRequestOperationsListener
org.opensearch.action.search.SearchRequestSlowLog
The request-level search slow log implementation
- Opensearch.internal:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Setting
<SlowLogLevel> static final Setting
<org.opensearch.common.unit.TimeValue> static final Setting
<org.opensearch.common.unit.TimeValue> static final Setting
<org.opensearch.common.unit.TimeValue> static final Setting
<org.opensearch.common.unit.TimeValue> Fields inherited from class org.opensearch.action.search.SearchRequestOperationsListener
NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected long
protected long
protected long
protected long
protected void
onPhaseEnd
(SearchPhaseContext context, SearchRequestContext searchRequestContext) protected void
onPhaseFailure
(SearchPhaseContext context, Throwable cause) protected void
onPhaseStart
(SearchPhaseContext context) protected void
onRequestEnd
(SearchPhaseContext context, SearchRequestContext searchRequestContext) protected void
onRequestStart
(SearchRequestContext searchRequestContext) Methods inherited from class org.opensearch.action.search.SearchRequestOperationsListener
isEnabled, isEnabled, onRequestFailure, setEnabled
-
Field Details
-
CLUSTER_SEARCH_REQUEST_SLOWLOG_THRESHOLD_WARN_SETTING
public static final Setting<org.opensearch.common.unit.TimeValue> CLUSTER_SEARCH_REQUEST_SLOWLOG_THRESHOLD_WARN_SETTING -
CLUSTER_SEARCH_REQUEST_SLOWLOG_THRESHOLD_INFO_SETTING
public static final Setting<org.opensearch.common.unit.TimeValue> CLUSTER_SEARCH_REQUEST_SLOWLOG_THRESHOLD_INFO_SETTING -
CLUSTER_SEARCH_REQUEST_SLOWLOG_THRESHOLD_DEBUG_SETTING
public static final Setting<org.opensearch.common.unit.TimeValue> CLUSTER_SEARCH_REQUEST_SLOWLOG_THRESHOLD_DEBUG_SETTING -
CLUSTER_SEARCH_REQUEST_SLOWLOG_THRESHOLD_TRACE_SETTING
public static final Setting<org.opensearch.common.unit.TimeValue> CLUSTER_SEARCH_REQUEST_SLOWLOG_THRESHOLD_TRACE_SETTING -
CLUSTER_SEARCH_REQUEST_SLOWLOG_LEVEL
-
-
Constructor Details
-
SearchRequestSlowLog
-
-
Method Details
-
onPhaseStart
- Overrides:
onPhaseStart
in classSearchRequestOperationsListener
-
onPhaseEnd
- Overrides:
onPhaseEnd
in classSearchRequestOperationsListener
-
onPhaseFailure
- Overrides:
onPhaseFailure
in classSearchRequestOperationsListener
-
onRequestStart
- Overrides:
onRequestStart
in classSearchRequestOperationsListener
-
onRequestEnd
- Overrides:
onRequestEnd
in classSearchRequestOperationsListener
-
getWarnThreshold
protected long getWarnThreshold() -
getInfoThreshold
protected long getInfoThreshold() -
getDebugThreshold
protected long getDebugThreshold() -
getTraceThreshold
protected long getTraceThreshold()
-