/external/opencensus-java/contrib/http_util/src/main/java/io/opencensus/contrib/http/util/ |
D | HttpMeasureConstants.java | 22 import io.opencensus.tags.TagKey; 123 public static final TagKey HTTP_CLIENT_HOST = TagKey.create("http_client_host"); 130 public static final TagKey HTTP_SERVER_HOST = TagKey.create("http_server_host"); 138 public static final TagKey HTTP_CLIENT_STATUS = TagKey.create("http_client_status"); 146 public static final TagKey HTTP_SERVER_STATUS = TagKey.create("http_server_status"); 153 public static final TagKey HTTP_CLIENT_PATH = TagKey.create("http_client_path"); 160 public static final TagKey HTTP_SERVER_PATH = TagKey.create("http_server_path"); 167 public static final TagKey HTTP_CLIENT_METHOD = TagKey.create("http_client_method"); 174 public static final TagKey HTTP_SERVER_METHOD = TagKey.create("http_server_method");
|
/external/grpc-grpc/src/core/ext/filters/load_reporting/ |
D | registered_opencensus_objects.h | 83 inline ::opencensus::stats::TagKey TagKeyToken() { in TagKeyToken() 84 static const ::opencensus::stats::TagKey token = in TagKeyToken() 85 opencensus::stats::TagKey::Register(kTagKeyToken); in TagKeyToken() 89 inline ::opencensus::stats::TagKey TagKeyHost() { in TagKeyHost() 90 static const ::opencensus::stats::TagKey token = in TagKeyHost() 91 opencensus::stats::TagKey::Register(kTagKeyHost); in TagKeyHost() 95 inline ::opencensus::stats::TagKey TagKeyUserId() { in TagKeyUserId() 96 static const ::opencensus::stats::TagKey token = in TagKeyUserId() 97 opencensus::stats::TagKey::Register(kTagKeyUserId); in TagKeyUserId() 101 inline ::opencensus::stats::TagKey TagKeyStatus() { in TagKeyStatus() [all …]
|
/external/opencensus-java/api/src/test/java/io/opencensus/tags/ |
D | TagKeyTest.java | 36 assertThat(TagKey.MAX_LENGTH).isEqualTo(255); in testMaxLength() 41 assertThat(TagKey.create("foo").getName()).isEqualTo("foo"); in testGetName() 46 char[] chars = new char[TagKey.MAX_LENGTH]; in create_AllowTagKeyNameWithMaxLength() 49 assertThat(TagKey.create(key).getName()).isEqualTo(key); in create_AllowTagKeyNameWithMaxLength() 54 char[] chars = new char[TagKey.MAX_LENGTH + 1]; in create_DisallowTagKeyNameOverMaxLength() 58 TagKey.create(key); in create_DisallowTagKeyNameOverMaxLength() 64 TagKey.create("\2ab\3cd"); in create_DisallowUnprintableChars() 70 TagKey.create(""); in createString_DisallowEmpty() 76 .addEqualityGroup(TagKey.create("foo"), TagKey.create("foo")) in testTagKeyEquals() 77 .addEqualityGroup(TagKey.create("bar")) in testTagKeyEquals()
|
D | TagTest.java | 32 assertThat(Tag.create(TagKey.create("k"), TagValue.create("v")).getKey()) in testGetKey() 33 .isEqualTo(TagKey.create("k")); 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/api/src/test/java/io/opencensus/stats/ |
D | ViewTest.java | 26 import io.opencensus.tags.TagKey; 56 TagKey.create("ab"), TagKey.create("a"), TagKey.create("A"), TagKey.create("b"))); in sortTagKeys() 59 TagKey.create("A"), TagKey.create("a"), TagKey.create("ab"), TagKey.create("b")) in sortTagKeys() 103 TagKey key1 = TagKey.create("duplicate"); in preventDuplicateColumns() 104 TagKey key2 = TagKey.create("duplicate"); in preventDuplicateColumns() 157 private static final TagKey FOO = TagKey.create("foo"); 158 private static final TagKey BAR = TagKey.create("bar"); 159 private static final List<TagKey> KEYS = Collections.unmodifiableList(Arrays.asList(FOO, BAR));
|
/external/opencensus-java/contrib/grpc_metrics/src/main/java/io/opencensus/contrib/grpc/metrics/ |
D | RpcMeasureConstants.java | 22 import io.opencensus.tags.TagKey; 38 @Deprecated public static final TagKey RPC_STATUS = TagKey.create("canonical_status"); 46 @Deprecated public static final TagKey RPC_METHOD = TagKey.create("method"); 57 public static final TagKey GRPC_CLIENT_STATUS = TagKey.create("grpc_client_status"); 68 public static final TagKey GRPC_SERVER_STATUS = TagKey.create("grpc_server_status"); 78 public static final TagKey GRPC_CLIENT_METHOD = TagKey.create("grpc_client_method"); 88 public static final TagKey GRPC_SERVER_METHOD = TagKey.create("grpc_server_method");
|
/external/opencensus-java/api/src/main/java/io/opencensus/stats/ |
D | View.java | 25 import io.opencensus.tags.TagKey; 47 private static final Comparator<TagKey> TAG_KEY_COMPARATOR = 48 new Comparator<TagKey>() { 50 public int compare(TagKey key1, TagKey key2) { 93 public abstract List<TagKey> getColumns(); in getColumns() 125 List<TagKey> columns, in create() 128 new HashSet<TagKey>(columns).size() == columns.size(), "Columns have duplicate."); in create() 130 List<TagKey> tagKeys = new ArrayList<TagKey>(columns); in create() 153 List<TagKey> columns) { in create() 155 new HashSet<TagKey>(columns).size() == columns.size(), "Columns have duplicate."); in create()
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/tags/ |
D | TagContextImpl.java | 21 import io.opencensus.tags.TagKey; 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() argument 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() argument 76 final Entry<TagKey, TagValue> next = iterator.next(); in next()
|
D | TagContextBuilderImpl.java | 23 import io.opencensus.tags.TagKey; 29 private final Map<TagKey, TagValue> tags; 31 TagContextBuilderImpl(Map<TagKey, TagValue> tags) { in TagContextBuilderImpl() argument 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() 46 public TagContextBuilderImpl remove(TagKey key) { in remove()
|
D | NoopTagContextBuilder.java | 23 import io.opencensus.tags.TagKey; 33 public TagContextBuilder put(TagKey key, TagValue value) { in put() 38 public TagContextBuilder remove(TagKey key) { in remove()
|
/external/opencensus-java/contrib/http_util/src/test/java/io/opencensus/contrib/http/util/ |
D | HttpMeasureConstantsTest.java | 21 import io.opencensus.tags.TagKey; 34 .isEqualTo(TagKey.create("http_client_status")); in constants() 36 .isEqualTo(TagKey.create("http_client_method")); in constants() 37 assertThat(HttpMeasureConstants.HTTP_CLIENT_PATH).isEqualTo(TagKey.create("http_client_path")); in constants() 38 assertThat(HttpMeasureConstants.HTTP_CLIENT_HOST).isEqualTo(TagKey.create("http_client_host")); in constants() 40 .isEqualTo(TagKey.create("http_server_status")); in constants() 42 .isEqualTo(TagKey.create("http_server_method")); in constants() 43 assertThat(HttpMeasureConstants.HTTP_SERVER_PATH).isEqualTo(TagKey.create("http_server_path")); in constants() 44 assertThat(HttpMeasureConstants.HTTP_SERVER_HOST).isEqualTo(TagKey.create("http_server_host")); in constants()
|
/external/grpc-grpc-java/testing/src/main/java/io/grpc/internal/testing/ |
D | StatsTestUtils.java | 33 import io.opencensus.tags.TagKey; 67 public final ImmutableMap<TagKey, TagValue> tags; 71 ImmutableMap<TagKey, TagValue> tags, ImmutableMap<Measure, Number> metrics) { in MetricsRecord() argument 117 public static final TagKey EXTRA_TAG = TagKey.create("/rpc/test/extratag"); 176 return new FakeTagContextBuilder(ImmutableMap.<TagKey, TagValue>of()); in emptyBuilder() 257 new FakeTagContext(ImmutableMap.<TagKey, TagValue>of()); 259 private final ImmutableMap<TagKey, TagValue> tags; 261 private FakeTagContext(ImmutableMap<TagKey, TagValue> tags) { in FakeTagContext() argument 265 public ImmutableMap<TagKey, TagValue> getTags() { in getTags() 278 new Function<Map.Entry<TagKey, TagValue>, Tag>() { in getIterator() [all …]
|
/external/grpc-grpc/src/cpp/ext/filters/census/ |
D | grpc_plugin.cc | 65 ::opencensus::stats::TagKey ClientMethodTagKey() { in ClientMethodTagKey() 67 ::opencensus::stats::TagKey::Register("grpc_client_method"); in ClientMethodTagKey() 71 ::opencensus::stats::TagKey ClientStatusTagKey() { in ClientStatusTagKey() 73 ::opencensus::stats::TagKey::Register("grpc_client_status"); in ClientStatusTagKey() 77 ::opencensus::stats::TagKey ServerMethodTagKey() { in ServerMethodTagKey() 79 ::opencensus::stats::TagKey::Register("grpc_server_method"); in ServerMethodTagKey() 83 ::opencensus::stats::TagKey ServerStatusTagKey() { in ServerStatusTagKey() 85 ::opencensus::stats::TagKey::Register("grpc_server_status"); in ServerStatusTagKey()
|
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/tags/ |
D | TagContextExample.java | 24 import io.opencensus.tags.TagKey; 32 private static final TagKey K1 = TagKey.create("k1"); 33 private static final TagKey K2 = TagKey.create("k2"); 34 private static final TagKey K3 = TagKey.create("k3"); 35 private static final TagKey K4 = TagKey.create("k4");
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/propagation/ |
D | TagContextSerializationTest.java | 28 import io.opencensus.tags.TagKey; 56 private static final TagKey K1 = TagKey.create("k1"); 57 private static final TagKey K2 = TagKey.create("k2"); 58 private static final TagKey K3 = TagKey.create("k3"); 59 private static final TagKey K4 = TagKey.create("k4"); 106 builder.put(TagKey.create(str), TagValue.create(str)); in testSerializeTooLargeTagContext() 110 builder.put(TagKey.create("last"), TagValue.create("last1")); in testSerializeTooLargeTagContext()
|
D | TagContextRoundtripTest.java | 24 import io.opencensus.tags.TagKey; 37 private static final TagKey K1 = TagKey.create("k1"); 38 private static final TagKey K2 = TagKey.create("k2"); 39 private static final TagKey K3 = TagKey.create("k3"); 75 builder.put(TagKey.create(str), TagValue.create(str)); in testRoundtrip_TagContextWithMaximumSize()
|
D | TagContextDeserializationTest.java | 27 import io.opencensus.tags.TagKey; 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/impl_core/src/test/java/io/opencensus/implcore/stats/ |
D | RecordUtilsTest.java | 37 import io.opencensus.tags.TagKey; 55 private static final TagKey ORIGINATOR = TagKey.create("originator"); 56 private static final TagKey CALLER = TagKey.create("caller"); 57 private static final TagKey METHOD = TagKey.create("method"); 68 List<TagKey> columns = Arrays.asList(CALLER, METHOD, ORIGINATOR); in testGetTagValues() 69 Map<TagKey, TagValue> tags = ImmutableMap.of(CALLER, CALLER_V, METHOD, METHOD_V); in testGetTagValues()
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/tags/propagation/ |
D | SerializationUtils.java | 28 import io.opencensus.tags.TagKey; 116 private static Map<TagKey, TagValue> parseTags(ByteBuffer buffer) in parseTags() 118 Map<TagKey, TagValue> tags = new HashMap<TagKey, TagValue>(); in parseTags() 124 TagKey key = createTagKey(decodeString(buffer)); in parseTags() 145 private static final TagKey createTagKey(String name) throws TagContextDeserializationException { in createTagKey() 147 return TagKey.create(name); in createTagKey() 155 private static final TagValue createTagValue(TagKey key, String value) in createTagValue()
|
/external/opencensus-java/exporters/stats/prometheus/src/test/java/io/opencensus/exporter/stats/prometheus/ |
D | PrometheusStatsCollectorTest.java | 36 import io.opencensus.tags.TagKey; 62 private static final TagKey K1 = TagKey.create("k1"); 63 private static final TagKey K2 = TagKey.create("k2"); 64 private static final TagKey LE_TAG_KEY = TagKey.create(LABEL_NAME_BUCKET_BOUND);
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/ |
D | ScopedTagContextsTest.java | 27 import io.opencensus.tags.TagKey; 40 private static final TagKey KEY_1 = TagKey.create("key 1"); 41 private static final TagKey KEY_2 = TagKey.create("key 2");
|
D | TagContextImplTest.java | 31 import io.opencensus.tags.TagKey; 52 private static final TagKey K1 = TagKey.create("k1"); 53 private static final TagKey K2 = TagKey.create("k2"); 62 TagContextImpl tags = new TagContextImpl(ImmutableMap.<TagKey, TagValue>of()); in getTags_empty()
|
/external/opencensus-java/exporters/stats/signalfx/src/main/java/io/opencensus/exporter/stats/signalfx/ |
D | SignalFxSessionAdaptor.java | 37 import io.opencensus.tags.TagKey; 67 List<TagKey> keys = view.getColumns(); in adapt() 107 List<TagKey> keys, List</*@Nullable*/ TagValue> values) { in createDimensions() 111 for (ListIterator<TagKey> it = keys.listIterator(); it.hasNext(); ) { in createDimensions() 112 TagKey key = it.next(); in createDimensions() 123 static Dimension createDimension(TagKey key, TagValue value) { in createDimension()
|
/external/opencensus-java/api/src/main/java/io/opencensus/tags/ |
D | TagKey.java | 37 public abstract class TagKey { class 45 TagKey() {} in TagKey() method in TagKey 62 public static TagKey create(String name) { in create()
|
/external/grpc-grpc/src/cpp/server/load_reporter/ |
D | load_reporter.h | 77 ::opencensus::stats::TagKey tag_key_token_; 78 ::opencensus::stats::TagKey tag_key_host_; 79 ::opencensus::stats::TagKey tag_key_user_id_; 80 ::opencensus::stats::TagKey tag_key_status_; 81 ::opencensus::stats::TagKey tag_key_metric_name_;
|