Class Tag<T>

    • Method Detail

      • create

        public static Tag<String> create​(String key,
                                         String value)
        Create a string tag.
        Parameters:
        key - tag name
        value - tag value
        Returns:
        string tag
      • create

        public static Tag<Number> create​(String key,
                                         Number value)
        Create a numeric tag.
        Parameters:
        key - tag name
        value - tag value
        Returns:
        numeric tag
      • create

        public static Tag<Boolean> create​(String key,
                                          boolean value)
        Create a boolean tag.
        Parameters:
        key - tag name
        value - tag value
        Returns:
        boolean tag
      • key

        public String key()
        Tag name.
        Returns:
        tag name
      • value

        public T value()
        Tag value.
        Returns:
        tag value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • apply

        public abstract void apply​(Span span)
        Configure this tag on the span provided.
        Parameters:
        span - span to apply the tag on