Class InstrumentDescriptor
java.lang.Object
io.opentelemetry.sdk.metrics.internal.descriptor.InstrumentDescriptor
- Direct Known Subclasses:
AutoValue_InstrumentDescriptor
Describes an instrument that was registered to record data.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InstrumentDescriptor
create
(String name, String description, String unit, InstrumentType type, InstrumentValueType valueType, Advice advice) final boolean
Uses case-insensitive version ofgetName()
, ignoresgetAdvice()
(not part of instrument identity}, ignoresgetSourceInfo()
.abstract Advice
Not part of instrument identity.abstract String
abstract String
getName()
final SourceInfo
Debugging information for this instrument.abstract InstrumentType
getType()
abstract String
getUnit()
abstract InstrumentValueType
final int
hashCode()
Uses case-insensitive version ofgetName()
, ignoresgetAdvice()
(not part of instrument identity}, ignoresgetSourceInfo()
.
-
Field Details
-
sourceInfo
-
hashcode
private int hashcode
-
-
Constructor Details
-
InstrumentDescriptor
InstrumentDescriptor()
-
-
Method Details
-
create
public static InstrumentDescriptor create(String name, String description, String unit, InstrumentType type, InstrumentValueType valueType, Advice advice) -
getName
-
getDescription
-
getUnit
-
getType
-
getValueType
-
getAdvice
Not part of instrument identity. Ignored fromhashCode()
andequals(Object)
. -
getSourceInfo
Debugging information for this instrument. Ignored fromequals(Object)
andObject.toString()
. -
hashCode
public final int hashCode()Uses case-insensitive version ofgetName()
, ignoresgetAdvice()
(not part of instrument identity}, ignoresgetSourceInfo()
. -
equals
Uses case-insensitive version ofgetName()
, ignoresgetAdvice()
(not part of instrument identity}, ignoresgetSourceInfo()
.
-