Class ThresholdLogReporter
- java.lang.Object
-
- com.couchbase.client.core.tracing.ThresholdLogReporter
-
public class ThresholdLogReporter extends Object
TheThresholdLogReporter
retrieves spans from (usually) aTracer
and stores them for threshold-based aggregation and logging.- Since:
- 1.6.0
- Author:
- Michael Nitschinger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThresholdLogReporter.Builder
The builder used to configure theThresholdLogReporter
.
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_DECODE_MICROS
static String
KEY_DISPATCH_MICROS
static String
KEY_ENCODE_MICROS
static String
KEY_SERVER_MICROS
static String
KEY_TOTAL_MICROS
static String
SERVICE_ANALYTICS
static String
SERVICE_FTS
static String
SERVICE_KV
static String
SERVICE_N1QL
static String
SERVICE_VIEW
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThresholdLogReporter.Builder
builder()
static ThresholdLogReporter
create()
static ThresholdLogReporter
disabled()
void
report(ThresholdLogSpan span)
Reports the given span, but it doesn't have to be a potential slow.void
shutdown()
Stop the reporter and its associated threads.
-
-
-
Field Detail
-
SERVICE_KV
public static final String SERVICE_KV
- See Also:
- Constant Field Values
-
SERVICE_N1QL
public static final String SERVICE_N1QL
- See Also:
- Constant Field Values
-
SERVICE_FTS
public static final String SERVICE_FTS
- See Also:
- Constant Field Values
-
SERVICE_VIEW
public static final String SERVICE_VIEW
- See Also:
- Constant Field Values
-
SERVICE_ANALYTICS
public static final String SERVICE_ANALYTICS
- See Also:
- Constant Field Values
-
KEY_TOTAL_MICROS
public static final String KEY_TOTAL_MICROS
- See Also:
- Constant Field Values
-
KEY_DISPATCH_MICROS
public static final String KEY_DISPATCH_MICROS
- See Also:
- Constant Field Values
-
KEY_ENCODE_MICROS
public static final String KEY_ENCODE_MICROS
- See Also:
- Constant Field Values
-
KEY_DECODE_MICROS
public static final String KEY_DECODE_MICROS
- See Also:
- Constant Field Values
-
KEY_SERVER_MICROS
public static final String KEY_SERVER_MICROS
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static ThresholdLogReporter.Builder builder()
-
disabled
public static ThresholdLogReporter disabled()
-
create
public static ThresholdLogReporter create()
-
report
public void report(ThresholdLogSpan span)
Reports the given span, but it doesn't have to be a potential slow. This method, based on its configuration, will figure out if the given span is indeed eligible for being part in the log.- Parameters:
span
- the span to report.
-
shutdown
public void shutdown()
Stop the reporter and its associated threads.
-
-