Interface Tracer


public interface Tracer
This interface defines a collect tracer. This tracer must be used to collect data traces.
Author:
pchretien, npiedeloup
  • Method Details

    • incMeasure

      Tracer incMeasure(String name, double value)
      Increments a measure (creates if not exists).
      Parameters:
      name - the measure name
      value - the measure increment
      Returns:
      this tracer
    • setMeasure

      Tracer setMeasure(String name, double value)
      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 measure
      value - the value of the measure
      Returns:
      this tracer
    • setMetadata

      Tracer setMetadata(String name, String value)
      Sets a value to a specific metadata. (cleans if exists)
      Parameters:
      name - the name of the metadata
      value - the value of the metadata
      Returns:
      this tracer
    • setTag

      Tracer setTag(String name, String value)
      Sets a value to a specific tag. (cleans if exists)
      Parameters:
      name - the name of the tag
      value - the value of the tag
      Returns:
      this tracer