Interface KeyName
public interface KeyName
Represents a key name used for documenting instrumentation.
- Since:
- 1.10.0
-
Method Summary
Modifier and TypeMethodDescriptionasString()Returns key name.default booleanWhether this key is required to be present in the instrumentation.static KeyName[]Merges arrays of tag keys.default KeyValueCreates a key value for the given key name with "none".default KeyValueCreates a key value for the given key name.default KeyValueCreates a key value for the given key name.
-
Method Details
-
merge
-
withValue
-
withNoneValue
-
withValue
-
asString
-
isRequired
default boolean isRequired()Whether this key is required to be present in the instrumentation. This can be checked in a test of the instrumentation.- Returns:
- whether this key is required
-