Package io.vertigo.core.analytics.trace
Interface Tracer
public interface Tracer
This interface defines a collect tracer.
This tracer must be used to collect data traces.
- Author:
- pchretien, npiedeloup
-
Method Summary
Modifier and TypeMethodDescriptionincMeasure(String name, double value) Increments a measure (creates if not exists).setMeasure(String name, double value) Sets a value to the measure.setMetadata(String name, String value) Sets a value to a specific metadata.Sets a value to a specific tag.
-
Method Details
-
incMeasure
Increments a measure (creates if not exists).- Parameters:
name- the measure namevalue- the measure increment- Returns:
- this tracer
-
setMeasure
Sets a value to the measure. (cleans if exists) You should use it when you have an exception. so you define explicitly one single value.- Parameters:
name- the name of the measurevalue- the value of the measure- Returns:
- this tracer
-
setMetadata
Sets a value to a specific metadata. (cleans if exists)- Parameters:
name- the name of the metadatavalue- the value of the metadata- Returns:
- this tracer
-
setTag
Sets a value to a specific tag. (cleans if exists)- Parameters:
name- the name of the tagvalue- the value of the tag- Returns:
- this tracer
-