Package io.opencensus.stats
Class NoopStats.NoopMeasureMap
- java.lang.Object
-
- io.opencensus.stats.MeasureMap
-
- io.opencensus.stats.NoopStats.NoopMeasureMap
-
- Enclosing class:
- NoopStats
private static final class NoopStats.NoopMeasureMap extends MeasureMap
-
-
Field Summary
Fields Modifier and Type Field Description private booleanhasUnsupportedValuesprivate static java.util.logging.Loggerlogger
-
Constructor Summary
Constructors Modifier Constructor Description privateNoopMeasureMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MeasureMapput(Measure.MeasureDouble measure, double value)Associates theMeasure.MeasureDoublewith the given value.MeasureMapput(Measure.MeasureLong measure, long value)Associates theMeasure.MeasureLongwith the given value.voidrecord()Records all of the measures at the same time, with the currentTagContext.voidrecord(TagContext tags)Records all of the measures at the same time, with an explicitTagContext.-
Methods inherited from class io.opencensus.stats.MeasureMap
putAttachment, putAttachment
-
-
-
-
Method Detail
-
put
public MeasureMap put(Measure.MeasureDouble measure, double value)
Description copied from class:MeasureMapAssociates theMeasure.MeasureDoublewith the given value. Subsequent updates to the sameMeasure.MeasureDoublewill overwrite the previous value.- Specified by:
putin classMeasureMap- Parameters:
measure- theMeasure.MeasureDoublevalue- the value to be associated withmeasure- Returns:
- this
-
put
public MeasureMap put(Measure.MeasureLong measure, long value)
Description copied from class:MeasureMapAssociates theMeasure.MeasureLongwith the given value. Subsequent updates to the sameMeasure.MeasureLongwill overwrite the previous value.- Specified by:
putin classMeasureMap- Parameters:
measure- theMeasure.MeasureLongvalue- the value to be associated withmeasure- Returns:
- this
-
record
public void record()
Description copied from class:MeasureMapRecords all of the measures at the same time, with the currentTagContext.This method records all of the stats in the
MeasureMapevery time it is called.- Specified by:
recordin classMeasureMap
-
record
public void record(TagContext tags)
Description copied from class:MeasureMapRecords all of the measures at the same time, with an explicitTagContext.This method records all of the stats in the
MeasureMapevery time it is called.- Specified by:
recordin classMeasureMap- Parameters:
tags- the tags associated with the measurements.
-
-