Interface Namer

  • All Known Implementing Classes:
    DefaultNamer

    public interface Namer
    Create names for metrics.
    • Method Detail

      • name

        java.lang.String name​(Identity identity,
                              Descriptor descriptor)
        Create the full metric key for a metric.
        Parameters:
        identity - identity for the instrumented entity
        descriptor - descriptor for the metric
        Returns:
        full metric key for this identity and metric descriptor
      • simpleName

        java.lang.String simpleName​(Identity identity,
                                    Descriptor descriptor)
        Create the simple name for a metric, without full hierarchy.
        Parameters:
        identity - identity for the instrumented entity
        descriptor - descriptor for the metric
        Returns:
        simple metric key for this identity and metric descriptor
      • uniqueName

        java.lang.String uniqueName​(Identity identity,
                                    Descriptor descriptor)
        Create the full metric key for a metric, including unique dimensions.
        Parameters:
        identity - identity for the instrumented entity
        descriptor - descriptor for the metric
        Returns:
        unique metric key for this identity and metric descriptor