Interface Namer
-
- All Known Implementing Classes:
DefaultNamer
public interface Namer
Create names for metrics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
name(Identity identity, Descriptor descriptor)
Create the full metric key for a metric.java.lang.String
simpleName(Identity identity, Descriptor descriptor)
Create the simple name for a metric, without full hierarchy.java.lang.String
uniqueName(Identity identity, Descriptor descriptor)
Create the full metric key for a metric, including unique dimensions.
-
-
-
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 entitydescriptor
- 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 entitydescriptor
- 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 entitydescriptor
- descriptor for the metric- Returns:
- unique metric key for this identity and metric descriptor
-
-