Class ThresholdLogReporter
java.lang.Object
com.couchbase.client.core.tracing.ThresholdLogReporter
public class ThresholdLogReporter extends Object
The
ThresholdLogReporter
retrieves spans from (usually) a Tracer
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
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 Details
-
SERVICE_KV
- See Also:
- Constant Field Values
-
SERVICE_N1QL
- See Also:
- Constant Field Values
-
SERVICE_FTS
- See Also:
- Constant Field Values
-
SERVICE_VIEW
- See Also:
- Constant Field Values
-
SERVICE_ANALYTICS
- See Also:
- Constant Field Values
-
KEY_TOTAL_MICROS
- See Also:
- Constant Field Values
-
KEY_DISPATCH_MICROS
- See Also:
- Constant Field Values
-
KEY_ENCODE_MICROS
- See Also:
- Constant Field Values
-
KEY_DECODE_MICROS
- See Also:
- Constant Field Values
-
KEY_SERVER_MICROS
- See Also:
- Constant Field Values
-
-
Method Details
-
builder
-
disabled
-
create
-
report
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.
-