public class ThresholdLogReporter extends Object
ThresholdLogReporter
retrieves spans from (usually) a Tracer
and stores them for threshold-based aggregation and logging.Modifier and Type | Class and Description |
---|---|
static class |
ThresholdLogReporter.Builder
The builder used to configure the
ThresholdLogReporter . |
Modifier and Type | Field and 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 |
Modifier and Type | Method and 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.
|
public static final String SERVICE_KV
public static final String SERVICE_N1QL
public static final String SERVICE_FTS
public static final String SERVICE_VIEW
public static final String SERVICE_ANALYTICS
public static final String KEY_TOTAL_MICROS
public static final String KEY_DISPATCH_MICROS
public static final String KEY_ENCODE_MICROS
public static final String KEY_DECODE_MICROS
public static final String KEY_SERVER_MICROS
public static ThresholdLogReporter.Builder builder()
public static ThresholdLogReporter disabled()
public static ThresholdLogReporter create()
public void report(ThresholdLogSpan span)
span
- the span to report.public void shutdown()
Copyright © 2021 Couchbase, Inc.. All rights reserved.