Class StatsTestUtils
java.lang.Object
io.grpc.internal.testing.StatsTestUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classATaggerimplementation that saves metrics records to be accessible fromStatsTestUtils.FakeStatsRecorder.pollRecord()andStatsTestUtils.FakeStatsRecorder.pollRecord(long, TimeUnit), untilStatsTestUtils.FakeStatsRecorder.rolloverRecords()is called.static final classstatic final classstatic classstatic final classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.opencensus.tags.TagKeyThis tag will be propagated byStatsTestUtils.FakeTaggeron the wire.private static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.google.common.collect.ImmutableMap<io.opencensus.tags.TagKey, io.opencensus.tags.TagValue> getTags(io.opencensus.tags.TagContext tags)
-
Field Details
-
EXTRA_TAG
public static final io.opencensus.tags.TagKey EXTRA_TAGThis tag will be propagated byStatsTestUtils.FakeTaggeron the wire. -
EXTRA_TAG_HEADER_VALUE_PREFIX
- See Also:
-
-
Constructor Details
-
StatsTestUtils
private StatsTestUtils()
-
-
Method Details
-
getTags
private static com.google.common.collect.ImmutableMap<io.opencensus.tags.TagKey, io.opencensus.tags.TagValue> getTags(io.opencensus.tags.TagContext tags)
-