Package io.opencensus.trace.export
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 Summary
Enum ConstantsEnum ConstantDescriptionStores finished successful requests of duration within the interval [10us, 100us).Stores finished successful requests of duration within the interval [100us, 1ms).Stores finished successful requests of duration within the interval [1ms, 10ms).Stores finished successful requests of duration within the interval [10ms, 100ms).Stores finished successful requests of duration within the interval [100ms, 1sec).Stores finished successful requests of duration within the interval [1sec, 10sec).Stores finished successful requests of duration within the interval [10sec, 100sec).Stores finished successful requests of duration >= 100sec.Stores finished successful requests of duration within the interval [0, 10us). -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long
private final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
LatencyBucketBoundaries
(long latencyLowerNs, long latencyUpperNs) Constructs aLatencyBucketBoundaries
with the given boundaries and label. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the latency lower bound of the bucket.long
Returns the latency upper bound of the bucket.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ZERO_MICROSx10
Stores finished successful requests of duration within the interval [0, 10us).- Since:
- 0.5
-
MICROSx10_MICROSx100
Stores finished successful requests of duration within the interval [10us, 100us).- Since:
- 0.5
-
MICROSx100_MILLIx1
Stores finished successful requests of duration within the interval [100us, 1ms).- Since:
- 0.5
-
MILLIx1_MILLIx10
Stores finished successful requests of duration within the interval [1ms, 10ms).- Since:
- 0.5
-
MILLIx10_MILLIx100
Stores finished successful requests of duration within the interval [10ms, 100ms).- Since:
- 0.5
-
MILLIx100_SECONDx1
Stores finished successful requests of duration within the interval [100ms, 1sec).- Since:
- 0.5
-
SECONDx1_SECONDx10
Stores finished successful requests of duration within the interval [1sec, 10sec).- Since:
- 0.5
-
SECONDx10_SECONDx100
Stores finished successful requests of duration within the interval [10sec, 100sec).- Since:
- 0.5
-
SECONDx100_MAX
Stores finished successful requests of duration >= 100sec.- Since:
- 0.5
-
-
Field Details
-
latencyLowerNs
private final long latencyLowerNs -
latencyUpperNs
private final long latencyUpperNs
-
-
Constructor Details
-
LatencyBucketBoundaries
private LatencyBucketBoundaries(long latencyLowerNs, long latencyUpperNs) Constructs aLatencyBucketBoundaries
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
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
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 nameNullPointerException
- 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
-