Class StackdriverTraceReporter
- java.lang.Object
-
- org.nuxeo.runtime.metrics.AbstractMetricsReporter
-
- org.nuxeo.runtime.metrics.reporter.StackdriverTraceReporter
-
- All Implemented Interfaces:
MetricsReporter
public class StackdriverTraceReporter extends AbstractMetricsReporter
Reports trace to Google Stackdriver.- Since:
- 11.4
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
activated
static String
GCP_PROJECT_ID_ENV_PROP
static String
GCP_PROJECT_ID_OPTION_PROP
-
Fields inherited from class org.nuxeo.runtime.metrics.AbstractMetricsReporter
DEFAULT_MAX_ANNOTATIONS, DEFAULT_MAX_ATTRIBUTES, DEFAULT_SAMPLER_PROB, DEFAULT_SERVICE, DEFAULT_TIMEOUT, MAX_ANNOTATIONS_OPTION, MAX_ATTRIBUTES_OPTION, options, pollInterval, SAMPLER_PROB_OPTION, SERVICE_OPTION, TIMEOUT_OPTION, URL_OPTION
-
-
Constructor Summary
Constructors Constructor Description StackdriverTraceReporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static String
getGcpProjectId(Map<String,String> options)
void
start(io.dropwizard.metrics5.MetricRegistry registry, io.dropwizard.metrics5.MetricFilter filter, Set<io.dropwizard.metrics5.MetricAttribute> deniedExpansions)
Starts metrics reporter.void
stop()
Stops metrics reporter.-
Methods inherited from class org.nuxeo.runtime.metrics.AbstractMetricsReporter
enableTracing, getCurrentHostname, getHostnameFromNuxeoUrl, getOption, getOptionAsBoolean, getOptionAsInt, getPollInterval, init, requireOption, requireOption
-
-
-
-
Field Detail
-
GCP_PROJECT_ID_ENV_PROP
public static final String GCP_PROJECT_ID_ENV_PROP
- See Also:
- Constant Field Values
-
GCP_PROJECT_ID_OPTION_PROP
public static final String GCP_PROJECT_ID_OPTION_PROP
- See Also:
- Constant Field Values
-
activated
protected boolean activated
-
-
Constructor Detail
-
StackdriverTraceReporter
public StackdriverTraceReporter()
-
-
Method Detail
-
start
public void start(io.dropwizard.metrics5.MetricRegistry registry, io.dropwizard.metrics5.MetricFilter filter, Set<io.dropwizard.metrics5.MetricAttribute> deniedExpansions)
Description copied from interface:MetricsReporter
Starts metrics reporter.
-
getGcpProjectId
protected static String getGcpProjectId(Map<String,String> options)
-
stop
public void stop()
Description copied from interface:MetricsReporter
Stops metrics reporter.
-
-