Package io.opencensus.implcore.stats
Class RecordUtils
java.lang.Object
io.opencensus.implcore.stats.RecordUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
private static final class
private static final class
private static final class
private static final class
private static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Function
<Measurement.MeasurementDouble, Double> private static final Function
<Measurement.MeasurementLong, Double> (package private) static final TagKey
(package private) static final TagKey
(package private) static final TagKey
(package private) static final TagKey
(package private) static final TagKey
(package private) static final TagKey
(package private) static final TagValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static <T> Map
<T, AggregationData> createAggregationMap
(Map<T, MutableAggregation> tagValueAggregationMap, Measure measure) (package private) static MutableAggregation
createMutableAggregation
(Aggregation aggregation, Measure measure) Create an emptyMutableAggregation
based on the givenAggregation
.(package private) static double
getDoubleValueFromMeasurement
(Measurement measurement) (package private) static Map
<TagKey, TagValueWithMetadata> getTagMap
(TagContext ctx) private static TagValue
getTagValueForDeprecatedRpcTag
(Map<? extends TagKey, TagValueWithMetadata> tags, TagKey[] newKeys) getTagValues
(Map<? extends TagKey, TagValueWithMetadata> tags, List<? extends TagKey> columns)
-
Field Details
-
UNKNOWN_TAG_VALUE
-
RPC_STATUS
-
RPC_METHOD
-
GRPC_CLIENT_STATUS
-
GRPC_CLIENT_METHOD
-
GRPC_SERVER_STATUS
-
GRPC_SERVER_METHOD
-
RPC_TAG_MAPPINGS
-
GET_VALUE_FROM_MEASUREMENT_DOUBLE
private static final Function<Measurement.MeasurementDouble,Double> GET_VALUE_FROM_MEASUREMENT_DOUBLE -
GET_VALUE_FROM_MEASUREMENT_LONG
-
-
Constructor Details
-
RecordUtils
private RecordUtils()
-
-
Method Details
-
getTagMap
-
getTagValues
-
getTagValueForDeprecatedRpcTag
-
createMutableAggregation
Create an emptyMutableAggregation
based on the givenAggregation
.- Parameters:
aggregation
-Aggregation
.- Returns:
- an empty
MutableAggregation
.
-
createAggregationMap
static <T> Map<T,AggregationData> createAggregationMap(Map<T, MutableAggregation> tagValueAggregationMap, Measure measure) -
getDoubleValueFromMeasurement
-