Class Constants


  • public class Constants
    extends java.lang.Object
    • Field Detail

      • MAX_DIMENSION_NAME_LENGTH

        public static final short MAX_DIMENSION_NAME_LENGTH
        See Also:
        Constant Field Values
      • MAX_DIMENSION_VALUE_LENGTH

        public static final short MAX_DIMENSION_VALUE_LENGTH
        See Also:
        Constant Field Values
      • MAX_METRIC_NAME_LENGTH

        public static final short MAX_METRIC_NAME_LENGTH
        See Also:
        Constant Field Values
      • VALID_NAMESPACE_REGEX

        public static final java.lang.String VALID_NAMESPACE_REGEX
        See Also:
        Constant Field Values
      • MAX_TIMESTAMP_PAST_AGE_SECONDS

        public static final long MAX_TIMESTAMP_PAST_AGE_SECONDS
      • MAX_TIMESTAMP_FUTURE_AGE_SECONDS

        public static final long MAX_TIMESTAMP_FUTURE_AGE_SECONDS
      • MAX_DATAPOINTS_PER_METRIC

        public static final int MAX_DATAPOINTS_PER_METRIC
        See Also:
        Constant Field Values
      • DEFAULT_ASYNC_BUFFER_SIZE

        public static final int DEFAULT_ASYNC_BUFFER_SIZE
        The max number of messages to hold in memory in case of transient socket errors. The maximum message size is 256 KB meaning the maximum size of this buffer would be 25.6 MB
        See Also:
        Constant Field Values
      • MAX_ATTEMPTS_PER_MESSAGE

        public static final int MAX_ATTEMPTS_PER_MESSAGE
        How many times to retry an individual message. We eventually give up vs. retrying indefinitely in case there is something inherent to the message that is causing the failures. Giving up results in data loss, but also helps us reduce the risk of a poison pill blocking all process telemetry.
        See Also:
        Constant Field Values
      • MIN_BACKOFF_MILLIS

        public static final int MIN_BACKOFF_MILLIS
        Starting backoff millis when a transient socket failure is encountered.
        See Also:
        Constant Field Values
      • MAX_BACKOFF_MILLIS

        public static final int MAX_BACKOFF_MILLIS
        Max backoff millis when a transient socket failure is encountered.
        See Also:
        Constant Field Values
      • MAX_BACKOFF_JITTER

        public static final int MAX_BACKOFF_JITTER
        Maximum amount of random jitter to apply to retries
        See Also:
        Constant Field Values
    • Constructor Detail

      • Constants

        public Constants()