Package io.grpc.internal.testing
Class StatsTestUtils
java.lang.Object
io.grpc.internal.testing.StatsTestUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
ATagger
implementation that saves metrics records to be accessible fromStatsTestUtils.FakeStatsRecorder.pollRecord()
andStatsTestUtils.FakeStatsRecorder.pollRecord(long, TimeUnit)
, untilStatsTestUtils.FakeStatsRecorder.rolloverRecords()
is called.static final class
static final class
static class
static final class
static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.opencensus.tags.TagKey
This tag will be propagated byStatsTestUtils.FakeTagger
on 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.FakeTagger
on 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)
-