/external/opencensus-java/api/src/test/java/io/opencensus/tags/ |
D | TagValueTest.java | 36 assertThat(TagValue.MAX_LENGTH).isEqualTo(255); in testMaxLength() 41 assertThat(TagValue.create("foo").asString()).isEqualTo("foo"); in testAsString() 46 char[] chars = new char[TagValue.MAX_LENGTH]; in create_AllowTagValueWithMaxLength() 49 assertThat(TagValue.create(value).asString()).isEqualTo(value); in create_AllowTagValueWithMaxLength() 54 char[] chars = new char[TagValue.MAX_LENGTH + 1]; in create_DisallowTagValueOverMaxLength() 58 TagValue.create(value); in create_DisallowTagValueOverMaxLength() 65 TagValue.create(value); in disallowTagValueWithUnprintableChars() 71 .addEqualityGroup(TagValue.create("foo"), TagValue.create("foo")) in testTagValueEquals() 72 .addEqualityGroup(TagValue.create("bar")) in testTagValueEquals()
|
D | TagTest.java | 32 assertThat(Tag.create(TagKey.create("k"), TagValue.create("v")).getKey()) in testGetKey() 40 Tag.create(TagKey.create("Key"), TagValue.create("foo")), in testTagEquals() 41 Tag.create(TagKey.create("Key"), TagValue.create("foo"))) in testTagEquals() 42 .addEqualityGroup(Tag.create(TagKey.create("Key"), TagValue.create("bar"))) in testTagEquals() 43 .addEqualityGroup(Tag.create(TagKey.create("Key2"), TagValue.create("foo"))) in testTagEquals()
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/tags/ |
D | TagContextImpl.java | 22 import io.opencensus.tags.TagValue; 35 new TagContextImpl(Collections.<TagKey, TagValue>emptyMap()); 38 private final Map<TagKey, TagValue> tags; 40 public TagContextImpl(Map<? extends TagKey, ? extends TagValue> tags) { in TagContextImpl() 41 this.tags = Collections.unmodifiableMap(new HashMap<TagKey, TagValue>(tags)); in TagContextImpl() 44 public Map<TagKey, TagValue> getTags() { in getTags() 63 Iterator<Map.Entry<TagKey, TagValue>> iterator; 65 TagIterator(Map<TagKey, TagValue> tags) { in TagIterator() 76 final Entry<TagKey, TagValue> next = iterator.next(); in next()
|
D | TagContextBuilderImpl.java | 24 import io.opencensus.tags.TagValue; 29 private final Map<TagKey, TagValue> tags; 31 TagContextBuilderImpl(Map<TagKey, TagValue> tags) { in TagContextBuilderImpl() 32 this.tags = new HashMap<TagKey, TagValue>(tags); in TagContextBuilderImpl() 36 this.tags = new HashMap<TagKey, TagValue>(); in TagContextBuilderImpl() 40 public TagContextBuilderImpl put(TagKey key, TagValue value) { in put()
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/propagation/ |
D | TagContextRoundtripTest.java | 25 import io.opencensus.tags.TagValue; 41 private static final TagValue V_EMPTY = TagValue.create(""); 42 private static final TagValue V1 = TagValue.create("v1"); 43 private static final TagValue V2 = TagValue.create("v2"); 44 private static final TagValue V3 = TagValue.create("v3"); 75 builder.put(TagKey.create(str), TagValue.create(str)); in testRoundtrip_TagContextWithMaximumSize()
|
D | TagContextSerializationTest.java | 29 import io.opencensus.tags.TagValue; 61 private static final TagValue V1 = TagValue.create("v1"); 62 private static final TagValue V2 = TagValue.create("v2"); 63 private static final TagValue V3 = TagValue.create("v3"); 64 private static final TagValue V4 = TagValue.create("v4"); 106 builder.put(TagKey.create(str), TagValue.create(str)); in testSerializeTooLargeTagContext() 110 builder.put(TagKey.create("last"), TagValue.create("last1")); in testSerializeTooLargeTagContext()
|
D | TagContextDeserializationTest.java | 28 import io.opencensus.tags.TagValue; 172 tagger.emptyBuilder().put(TagKey.create("Key"), TagValue.create("Value")).build(); in testDeserializeOneTag() 185 .put(TagKey.create("Key1"), TagValue.create("Value1")) in testDeserializeMultipleTags() 186 .put(TagKey.create("Key2"), TagValue.create("Value2")) in testDeserializeMultipleTags() 198 tagger.emptyBuilder().put(TagKey.create("Key1"), TagValue.create("Value2")).build(); in testDeserializeDuplicateKeys() 215 .put(TagKey.create("Key1"), TagValue.create("Value4")) in testDeserializeNonConsecutiveDuplicateKeys() 216 .put(TagKey.create("Key2"), TagValue.create("Value5")) in testDeserializeNonConsecutiveDuplicateKeys() 217 .put(TagKey.create("Key3"), TagValue.create("Value3")) in testDeserializeNonConsecutiveDuplicateKeys() 229 tagger.emptyBuilder().put(TagKey.create("Key1"), TagValue.create("Value1")).build(); in testDeserializeDuplicateTags() 246 .put(TagKey.create("Key1"), TagValue.create("Value1")) in testDeserializeNonConsecutiveDuplicateTags() [all …]
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/tags/ |
D | TagContextExample.java | 25 import io.opencensus.tags.TagValue; 37 private static final TagValue V1 = TagValue.create("v1"); 38 private static final TagValue V2 = TagValue.create("v2"); 39 private static final TagValue V3 = TagValue.create("v3"); 40 private static final TagValue V4 = TagValue.create("v4");
|
/external/grpc-grpc-java/testing/src/main/java/io/grpc/internal/testing/ |
D | StatsTestUtils.java | 34 import io.opencensus.tags.TagValue; 67 public final ImmutableMap<TagKey, TagValue> tags; 71 ImmutableMap<TagKey, TagValue> tags, ImmutableMap<Measure, Number> metrics) { in MetricsRecord() 176 return new FakeTagContextBuilder(ImmutableMap.<TagKey, TagValue>of()); in emptyBuilder() 205 TagValue.create(serializedString.substring(EXTRA_TAG_HEADER_VALUE_PREFIX.length()))) in fromByteArray() 214 TagValue extraTagValue = getTags(tags).get(EXTRA_TAG); in toByteArray() 257 new FakeTagContext(ImmutableMap.<TagKey, TagValue>of()); 259 private final ImmutableMap<TagKey, TagValue> tags; 261 private FakeTagContext(ImmutableMap<TagKey, TagValue> tags) { in FakeTagContext() 265 public ImmutableMap<TagKey, TagValue> getTags() { in getTags() [all …]
|
/external/opencensus-java/api/src/test/java/io/opencensus/stats/ |
D | ViewDataTest.java | 46 import io.opencensus.tags.TagValue; 115 Collections.<List<TagValue>, AggregationData>emptyMap(), in testViewDataEquals() 198 ImmutableMap.<List<TagValue>, AggregationData>of( in preventAggregationAndAggregationDataMismatch_SumDouble_SumLong() 206 ImmutableMap.<List<TagValue>, AggregationData>of( in preventAggregationAndAggregationDataMismatch_SumLong_SumDouble() 230 ImmutableMap.<List<TagValue>, AggregationData>of( in preventAggregationAndAggregationDataMismatch_LastValueDouble_LastValueLong() 238 ImmutableMap.<List<TagValue>, AggregationData>of( in preventAggregationAndAggregationDataMismatch_LastValueLong_LastValueDouble() 251 View view, Map<List<TagValue>, ? extends AggregationData> entries) { in aggregationAndAggregationDataMismatch() argument 272 private static final TagValue V1 = TagValue.create("v1"); 273 private static final TagValue V2 = TagValue.create("v2"); 274 private static final TagValue V10 = TagValue.create("v10"); [all …]
|
/external/opencensus-java/api/src/main/java/io/opencensus/stats/ |
D | ViewData.java | 36 import io.opencensus.tags.TagValue; 76 public abstract Map<List</*@Nullable*/ TagValue>, AggregationData> getAggregationMap(); in getAggregationMap() 123 Map<? extends List</*@Nullable*/ TagValue>, ? extends AggregationData> map, in create() 126 final Map<List</*@Nullable*/ TagValue>, AggregationData> deepCopy = in create() 127 new HashMap<List</*@Nullable*/ TagValue>, AggregationData>(); in create() 128 for (Entry<? extends List</*@Nullable*/ TagValue>, ? extends AggregationData> entry : in create() 132 Collections.unmodifiableList(new ArrayList</*@Nullable*/ TagValue>(entry.getKey())), in create() 173 Map<? extends List</*@Nullable*/ TagValue>, ? extends AggregationData> map, 176 Map<List</*@Nullable*/ TagValue>, AggregationData> deepCopy = 177 new HashMap<List</*@Nullable*/ TagValue>, AggregationData>(); [all …]
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/ |
D | IntervalBucketTest.java | 26 import io.opencensus.tags.TagValue; 94 List<TagValue> tagValues1 = Arrays.<TagValue>asList(TagValue.create("VALUE1")); in testRecord() 95 List<TagValue> tagValues2 = Arrays.<TagValue>asList(TagValue.create("VALUE2")); in testRecord()
|
D | RecordUtilsTest.java | 38 import io.opencensus.tags.TagValue; 58 private static final TagValue CALLER_V = TagValue.create("some caller"); 59 private static final TagValue METHOD_V = TagValue.create("some method"); 69 Map<TagKey, TagValue> tags = ImmutableMap.of(CALLER, CALLER_V, METHOD, METHOD_V); in testGetTagValues()
|
D | MetricUtilsTest.java | 39 import io.opencensus.tags.TagValue; 52 private static final TagValue VALUE = TagValue.create("VALUE"); 53 private static final TagValue VALUE_2 = TagValue.create("VALUE_2"); 122 List<TagValue> tagValues = Arrays.asList(VALUE, VALUE_2, null); in tagValuesToLabelValues()
|
/external/opencensus-java/exporters/stats/signalfx/src/test/java/io/opencensus/exporter/stats/signalfx/ |
D | SignalFxSessionAdaptorTest.java | 48 import io.opencensus.tags.TagValue; 129 ImmutableList.of(TagValue.create("dog"))); in createDimensionsWithNonMatchingListSizes() 138 ImmutableList.of(TagValue.create("dog"), TagValue.create("")))); in createDimensionsIgnoresEmptyValues() 147 SignalFxSessionAdaptor.createDimension(TagKey.create("animal"), TagValue.create("dog")); in createDimension() 240 Map<List<TagValue>, AggregationData> map = in adaptViewIntoDatapoints() 241 ImmutableMap.<List<TagValue>, AggregationData>of( in adaptViewIntoDatapoints() 242 ImmutableList.of(TagValue.create("dog")), in adaptViewIntoDatapoints() 244 ImmutableList.of(TagValue.create("cat")), in adaptViewIntoDatapoints() 281 Map<List<TagValue>, AggregationData> map = in adaptViewWithEmptyTagValueIntoDatapoints() 282 ImmutableMap.<List<TagValue>, AggregationData>of( in adaptViewWithEmptyTagValueIntoDatapoints() [all …]
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/tags/propagation/ |
D | SerializationUtils.java | 29 import io.opencensus.tags.TagValue; 116 private static Map<TagKey, TagValue> parseTags(ByteBuffer buffer) in parseTags() 118 Map<TagKey, TagValue> tags = new HashMap<TagKey, TagValue>(); in parseTags() 125 TagValue val = createTagValue(key, decodeString(buffer)); in parseTags() 155 private static final TagValue createTagValue(TagKey key, String value) in createTagValue() 158 return TagValue.create(value); in createTagValue()
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/ |
D | RecordUtils.java | 47 import io.opencensus.tags.TagValue; 62 @javax.annotation.Nullable @VisibleForTesting static final TagValue UNKNOWN_TAG_VALUE = null; 64 static Map<TagKey, TagValue> getTagMap(TagContext ctx) { in getTagMap() 68 Map<TagKey, TagValue> tags = Maps.newHashMap(); in getTagMap() 78 static List</*@Nullable*/ TagValue> getTagValues( in getTagValues() 79 Map<? extends TagKey, ? extends TagValue> tags, List<? extends TagKey> columns) { in getTagValues() 80 List</*@Nullable*/ TagValue> tagValues = new ArrayList</*@Nullable*/ TagValue>(columns.size()); in getTagValues()
|
D | MutableViewData.java | 47 import io.opencensus.tags.TagValue; 111 private final Map<List</*@Nullable*/ TagValue>, MutableAggregation> tagValueAggregationMap = 138 for (Entry<List</*@Nullable*/ TagValue>, MutableAggregation> entry : in toMetric() 150 List</*@Nullable*/ TagValue> tagValues = in record() 171 Collections.<List</*@Nullable*/ TagValue>, AggregationData>emptyMap(), in toViewData() 250 List</*@Nullable*/ TagValue> tagValues = in record() 270 Collections.<List</*@Nullable*/ TagValue>, AggregationData>emptyMap(), in toViewData() 346 private Map<List</*@Nullable*/ TagValue>, AggregationData> combineBucketsAndGetAggregationMap( in combineBucketsAndGetAggregationMap() 349 Multimap<List</*@Nullable*/ TagValue>, MutableAggregation> multimap = in combineBucketsAndGetAggregationMap() 357 Map<List</*@Nullable*/ TagValue>, MutableAggregation> singleMap = in combineBucketsAndGetAggregationMap() [all …]
|
D | IntervalBucket.java | 27 import io.opencensus.tags.TagValue; 44 private final Map<List</*@Nullable*/ TagValue>, MutableAggregation> tagValueAggregationMap = 55 Map<List</*@Nullable*/ TagValue>, MutableAggregation> getTagValueAggregationMap() { in getTagValueAggregationMap() 65 List</*@Nullable*/ TagValue> tagValues, in record()
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/zpages/ |
D | ZPagesTester.java | 26 import io.opencensus.tags.TagValue; 45 private static final TagValue METHOD = TagValue.create("ExampleMethod"); 83 .put(RpcMeasureConstants.RPC_STATUS, TagValue.create("OK")) in recordExampleData() 94 .put(RpcMeasureConstants.RPC_STATUS, TagValue.create("UNKNOWN")) in recordExampleData()
|
/external/opencensus-java/contrib/zpages/src/test/java/io/opencensus/contrib/zpages/ |
D | StatszZPageHandlerTest.java | 47 import io.opencensus.tags.TagValue; 74 private static final TagValue METHOD_1 = TagValue.create("method1"); 75 private static final TagValue METHOD_2 = TagValue.create("method2"); 76 private static final TagValue METHOD_3 = TagValue.create("method3"); 238 for (Map.Entry<List</*@Nullable*/ TagValue>, AggregationData> entry : in assertContainsViewData() 240 List<TagValue> tagValues = entry.getKey(); in assertContainsViewData() 241 for (TagValue tagValue : tagValues) { in assertContainsViewData()
|
D | RpczZPageHandlerTest.java | 34 import io.opencensus.tags.TagValue; 50 private static final TagValue METHOD_1 = TagValue.create("method1"); 51 private static final TagValue METHOD_2 = TagValue.create("method2");
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | CensusModulesTest.java | 68 import io.opencensus.tags.TagValue; 251 StatsTestUtils.EXTRA_TAG, TagValue.create("extra value")).build(), in testClientInterceptors() 282 TagValue methodTag = record.tags.get(RpcMeasureConstants.RPC_METHOD); in testClientInterceptors() 285 TagValue extraTag = record.tags.get(StatsTestUtils.EXTRA_TAG); in testClientInterceptors() 318 TagValue statusTag = record.tags.get(RpcMeasureConstants.RPC_STATUS); in testClientInterceptors() 321 TagValue extraTag = record.tags.get(StatsTestUtils.EXTRA_TAG); in testClientInterceptors() 368 TagValue methodTag = record.tags.get(RpcMeasureConstants.RPC_METHOD); in subtestClientBasicStatsDefaultContext() 402 TagValue methodTag = record.tags.get(RpcMeasureConstants.RPC_METHOD); in subtestClientBasicStatsDefaultContext() 404 TagValue statusTag = record.tags.get(RpcMeasureConstants.RPC_STATUS); in subtestClientBasicStatsDefaultContext() 496 TagValue methodTag = record.tags.get(RpcMeasureConstants.RPC_METHOD); in clientStreamNeverCreatedStillRecordStats() [all …]
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/ |
D | ScopedTagContextsTest.java | 28 import io.opencensus.tags.TagValue; 43 private static final TagValue VALUE_1 = TagValue.create("value 1"); 44 private static final TagValue VALUE_2 = TagValue.create("value 2");
|
/external/opencensus-java/api/src/main/java/io/opencensus/tags/ |
D | TagValue.java | 34 public abstract class TagValue { class 42 TagValue() {} in TagValue() method in TagValue 57 public static TagValue create(String value) { in create()
|