Class MeasureMap

    • Constructor Detail

      • MeasureMap

        public MeasureMap()
    • Method Detail

      • putAttachment

        @Deprecated
        public MeasureMap putAttachment​(java.lang.String key,
                                        java.lang.String value)
        Deprecated.
        Associate the contextual information of an Exemplar to this MeasureMap. Contextual information is represented as String key-value pairs.

        If this method is called multiple times with the same key, only the last value will be kept.

        Parameters:
        key - the key of contextual information of an Exemplar.
        value - the string representation of contextual information of an Exemplar.
        Returns:
        this
        Since:
        0.16
      • putAttachment

        public MeasureMap putAttachment​(java.lang.String key,
                                        AttachmentValue value)
        Associate the contextual information of an Exemplar to this MeasureMap. Contextual information is represented as a String key and an AttachmentValue.

        If this method is called multiple times with the same key, only the last value will be kept.

        Parameters:
        key - the key of contextual information of an Exemplar.
        value - the value of contextual information of an Exemplar.
        Returns:
        this
        Since:
        0.20
      • record

        public abstract void record()
        Records all of the measures at the same time, with the current TagContext.

        This method records all of the stats in the MeasureMap every time it is called.

        Since:
        0.8
      • record

        public abstract void record​(TagContext tags)
        Records all of the measures at the same time, with an explicit TagContext.

        This method records all of the stats in the MeasureMap every time it is called.

        Parameters:
        tags - the tags associated with the measurements.
        Since:
        0.8