Enum SampledSpanStore.LatencyBucketBoundaries

java.lang.Object
java.lang.Enum<SampledSpanStore.LatencyBucketBoundaries>
io.opencensus.trace.export.SampledSpanStore.LatencyBucketBoundaries
All Implemented Interfaces:
Serializable, Comparable<SampledSpanStore.LatencyBucketBoundaries>
Enclosing class:
SampledSpanStore

public static enum SampledSpanStore.LatencyBucketBoundaries extends Enum<SampledSpanStore.LatencyBucketBoundaries>
The latency buckets boundaries. Samples based on latency for successful spans (the status of the span has a canonical code equal to Status.CanonicalCode.OK) are collected in one of these latency buckets.
Since:
0.5
  • Enum Constant Details

  • Field Details

    • latencyLowerNs

      private final long latencyLowerNs
    • latencyUpperNs

      private final long latencyUpperNs
  • Constructor Details

    • LatencyBucketBoundaries

      private LatencyBucketBoundaries(long latencyLowerNs, long latencyUpperNs)
      Constructs a LatencyBucketBoundaries with the given boundaries and label.
      Parameters:
      latencyLowerNs - the latency lower bound of the bucket.
      latencyUpperNs - the latency upper bound of the bucket.
  • Method Details

    • values

      public static SampledSpanStore.LatencyBucketBoundaries[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SampledSpanStore.LatencyBucketBoundaries valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getLatencyLowerNs

      public long getLatencyLowerNs()
      Returns the latency lower bound of the bucket.
      Returns:
      the latency lower bound of the bucket.
      Since:
      0.5
    • getLatencyUpperNs

      public long getLatencyUpperNs()
      Returns the latency upper bound of the bucket.
      Returns:
      the latency upper bound of the bucket.
      Since:
      0.5