Home
last modified time | relevance | path

Searched refs:AttributeValue (Results 1 – 25 of 49) sorted by relevance

12

/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DAttributeValueTest.java35 AttributeValue attribute = AttributeValue.stringAttributeValue("MyStringAttributeValue"); in stringAttributeValue()
66 AttributeValue attribute = AttributeValue.booleanAttributeValue(true); in booleanAttributeValue()
97 AttributeValue attribute = AttributeValue.longAttributeValue(123456L); in longAttributeValue()
128 AttributeValue attribute = AttributeValue.doubleAttributeValue(1.23456); in doubleAttributeValue()
167 AttributeValue attribute = AttributeValue.doubleAttributeValue(1.23456); in doubleAttributeValue_DeprecatedMatchFunction()
207 AttributeValue.stringAttributeValue("MyStringAttributeValue"), in attributeValue_EqualsAndHashCode()
208 AttributeValue.stringAttributeValue("MyStringAttributeValue")); in attributeValue_EqualsAndHashCode()
209 tester.addEqualityGroup(AttributeValue.stringAttributeValue("MyStringAttributeDiffValue")); in attributeValue_EqualsAndHashCode()
211 AttributeValue.booleanAttributeValue(true), AttributeValue.booleanAttributeValue(true)); in attributeValue_EqualsAndHashCode()
212 tester.addEqualityGroup(AttributeValue.booleanAttributeValue(false)); in attributeValue_EqualsAndHashCode()
[all …]
DAnnotationTest.java46 Annotation.fromDescriptionAndAttributes(null, Collections.<String, AttributeValue>emptyMap()); in fromDescriptionAndAttributes_NullDescription()
56 Map<String, AttributeValue> attributes = new HashMap<String, AttributeValue>(); in fromDescriptionAndAttributes()
58 "MyStringAttributeKey", AttributeValue.stringAttributeValue("MyStringAttributeValue")); in fromDescriptionAndAttributes()
68 "MyAnnotationText", Collections.<String, AttributeValue>emptyMap()); in fromDescriptionAndAttributes_EmptyAttributes()
76 Map<String, AttributeValue> attributes = new HashMap<String, AttributeValue>(); in annotation_EqualsAndHashCode()
78 "MyStringAttributeKey", AttributeValue.stringAttributeValue("MyStringAttributeValue")); in annotation_EqualsAndHashCode()
83 "MyAnnotationText", Collections.<String, AttributeValue>emptyMap())) in annotation_EqualsAndHashCode()
95 Map<String, AttributeValue> attributes = new HashMap<String, AttributeValue>(); in annotation_ToString()
97 "MyStringAttributeKey", AttributeValue.stringAttributeValue("MyStringAttributeValue")); in annotation_ToString()
DBlankSpanTest.java38 Map<String, AttributeValue> attributes = new HashMap<String, AttributeValue>(); in doNotCrash()
40 "MyStringAttributeKey", AttributeValue.stringAttributeValue("MyStringAttributeValue")); in doNotCrash()
41 Map<String, AttributeValue> multipleAttributes = new HashMap<String, AttributeValue>(); in doNotCrash()
43 "MyStringAttributeKey", AttributeValue.stringAttributeValue("MyStringAttributeValue")); in doNotCrash()
44 multipleAttributes.put("MyBooleanAttributeKey", AttributeValue.booleanAttributeValue(true)); in doNotCrash()
45 multipleAttributes.put("MyLongAttributeKey", AttributeValue.longAttributeValue(123)); in doNotCrash()
48 "MyStringAttributeKey2", AttributeValue.stringAttributeValue("MyStringAttributeValue2")); in doNotCrash()
DLinkTest.java34 private final Map<String, AttributeValue> attributesMap = new HashMap<String, AttributeValue>();
42 attributesMap.put("MyAttributeKey0", AttributeValue.stringAttributeValue("MyStringAttribute")); in setUp()
43 attributesMap.put("MyAttributeKey1", AttributeValue.longAttributeValue(10)); in setUp()
44 attributesMap.put("MyAttributeKey2", AttributeValue.booleanAttributeValue(true)); in setUp()
DNoopSpan.java37 public void putAttributes(Map<String, AttributeValue> attributes) { in putAttributes()
42 public void addAnnotation(String description, Map<String, AttributeValue> attributes) { in addAnnotation()
/external/opencensus-java/exporters/trace/stackdriver/src/main/java/io/opencensus/exporter/trace/stackdriver/
DStackdriverV2ExporterHandler.java27 import com.google.devtools.cloudtrace.v2.AttributeValue;
28 import com.google.devtools.cloudtrace.v2.AttributeValue.Builder;
86 private static final AttributeValue AGENT_LABEL_VALUE =
87 AttributeValue.newBuilder()
105 private static final Map<String, AttributeValue> RESOURCE_LABELS = getResourceLabels(RESOURCE);
108 private static final Function<String, /*@Nullable*/ AttributeValue> stringAttributeValueFunction =
109 new Function<String, /*@Nullable*/ AttributeValue>() {
111 public AttributeValue apply(String stringValue) {
112 Builder attributeValueBuilder = AttributeValue.newBuilder();
117 private static final Function<Boolean, /*@Nullable*/ AttributeValue>
[all …]
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DAttributeValue.java31 public abstract class AttributeValue { class
40 public static AttributeValue stringAttributeValue(String stringValue) { in stringAttributeValue()
51 public static AttributeValue booleanAttributeValue(boolean booleanValue) { in booleanAttributeValue()
62 public static AttributeValue longAttributeValue(long longValue) { in longAttributeValue()
73 public static AttributeValue doubleAttributeValue(double doubleValue) { in doubleAttributeValue()
77 AttributeValue() {} in AttributeValue() method in AttributeValue
126 abstract static class AttributeValueString extends AttributeValue {
130 static AttributeValue create(String stringValue) { in create()
159 abstract static class AttributeValueBoolean extends AttributeValue {
163 static AttributeValue create(Boolean booleanValue) { in create()
[all …]
DAnnotation.java34 private static final Map<String, AttributeValue> EMPTY_ATTRIBUTES =
35 Collections.unmodifiableMap(Collections.<String, AttributeValue>emptyMap());
59 String description, Map<String, AttributeValue> attributes) { in fromDescriptionAndAttributes()
63 new HashMap<String, AttributeValue>(Utils.checkNotNull(attributes, "attributes")))); in fromDescriptionAndAttributes()
80 public abstract Map<String, AttributeValue> getAttributes(); in getAttributes()
DLink.java39 private static final Map<String, AttributeValue> EMPTY_ATTRIBUTES = Collections.emptyMap();
83 SpanContext context, Type type, Map<String, AttributeValue> attributes) { in fromSpanContext()
88 Collections.unmodifiableMap(new HashMap<String, AttributeValue>(attributes))); in fromSpanContext()
121 public abstract Map<String, AttributeValue> getAttributes(); in getAttributes()
DSpan.java38 private static final Map<String, AttributeValue> EMPTY_ATTRIBUTES = Collections.emptyMap();
95 public void putAttribute(String key, AttributeValue value) { in putAttribute()
112 public void putAttributes(Map<String, AttributeValue> attributes) { in putAttributes()
129 public void addAttributes(Map<String, AttributeValue> attributes) { in addAttributes()
152 public abstract void addAnnotation(String description, Map<String, AttributeValue> attributes); in addAnnotation()
DBlankSpan.java46 public void putAttribute(String key, AttributeValue value) { in putAttribute()
53 public void putAttributes(Map<String, AttributeValue> attributes) { in putAttributes()
59 public void addAnnotation(String description, Map<String, AttributeValue> attributes) { in addAnnotation()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/
DNoRecordEventsSpanImplTest.java22 import io.opencensus.trace.AttributeValue;
66 Map<String, AttributeValue> attributes = new HashMap<String, AttributeValue>(); in doNotCrash()
68 "MyStringAttributeKey", AttributeValue.stringAttributeValue("MyStringAttributeValue")); in doNotCrash()
69 Map<String, AttributeValue> multipleAttributes = new HashMap<String, AttributeValue>(); in doNotCrash()
71 "MyStringAttributeKey", AttributeValue.stringAttributeValue("MyStringAttributeValue")); in doNotCrash()
72 multipleAttributes.put("MyBooleanAttributeKey", AttributeValue.booleanAttributeValue(true)); in doNotCrash()
73 multipleAttributes.put("MyLongAttributeKey", AttributeValue.longAttributeValue(123)); in doNotCrash()
76 "MyStringAttributeKey2", AttributeValue.stringAttributeValue("MyStringAttributeValue2")); in doNotCrash()
DRecordEventsSpanImplTest.java27 import io.opencensus.trace.AttributeValue;
65 private final Map<String, AttributeValue> attributes = new HashMap<String, AttributeValue>();
66 private final Map<String, AttributeValue> expectedAttributes =
67 new HashMap<String, AttributeValue>();
75 "MyStringAttributeKey", AttributeValue.stringAttributeValue("MyStringAttributeValue")); in setUp()
76 attributes.put("MyLongAttributeKey", AttributeValue.longAttributeValue(123L)); in setUp()
77 attributes.put("MyBooleanAttributeKey", AttributeValue.booleanAttributeValue(false)); in setUp()
81 AttributeValue.stringAttributeValue("MySingleStringAttributeValue")); in setUp()
103 AttributeValue.stringAttributeValue("MySingleStringAttributeValue")); in noEventsRecordedAfterEnd()
154 AttributeValue.stringAttributeValue("MySingleStringAttributeValue")); in toSpanData_ActiveSpan()
[all …]
/external/opencensus-java/exporters/trace/ocagent/src/main/java/io/opencensus/exporter/trace/ocagent/
DTraceProtoUtils.java27 import io.opencensus.proto.trace.v1.AttributeValue;
66 private static final Function<String, /*@Nullable*/ AttributeValue> stringAttributeValueFunction =
67 new Function<String, /*@Nullable*/ AttributeValue>() {
69 public AttributeValue apply(String stringValue) {
70 return AttributeValue.newBuilder()
76 private static final Function<Boolean, /*@Nullable*/ AttributeValue>
78 new Function<Boolean, /*@Nullable*/ AttributeValue>() {
80 public AttributeValue apply(Boolean booleanValue) {
81 return AttributeValue.newBuilder().setBoolValue(booleanValue).build();
85 private static final Function<Long, /*@Nullable*/ AttributeValue> longAttributeValueFunction =
[all …]
/external/opencensus-java/exporters/trace/stackdriver/src/test/java/io/opencensus/exporter/trace/stackdriver/
DStackdriverV2ExporterHandlerProtoTest.java31 import com.google.devtools.cloudtrace.v2.AttributeValue;
124 io.opencensus.trace.AttributeValue.longAttributeValue(10L),
126 io.opencensus.trace.AttributeValue.booleanAttributeValue(true)),
133 private static final Map<String, AttributeValue> EMPTY_RESOURCE_LABELS = Collections.emptyMap();
141 private static final ImmutableMap<String, AttributeValue> AWS_RESOURCE_LABELS =
149 private static final ImmutableMap<String, AttributeValue> GCE_RESOURCE_LABELS =
157 private static final ImmutableMap<String, AttributeValue> GKE_RESOURCE_LABELS =
158 ImmutableMap.<String, AttributeValue>builder()
298 .containsEntry(ATTRIBUTE_KEY_1, AttributeValue.newBuilder().setIntValue(10L).build()); in generateSpan()
300 .containsEntry(ATTRIBUTE_KEY_2, AttributeValue.newBuilder().setBoolValue(true).build()); in generateSpan()
[all …]
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandlerTest.java39 import io.opencensus.trace.AttributeValue;
137 private static ImmutableMap<String, AttributeValue> sampleAttributes() { in sampleAttributes()
139 "BOOL", AttributeValue.booleanAttributeValue(false), in sampleAttributes()
140 "LONG", AttributeValue.longAttributeValue(Long.MAX_VALUE), in sampleAttributes()
142 AttributeValue.stringAttributeValue( in sampleAttributes()
152 "bool", AttributeValue.booleanAttributeValue(true), in sampleAnnotation()
153 "long", AttributeValue.longAttributeValue(1337L), in sampleAnnotation()
155 AttributeValue.stringAttributeValue( in sampleAnnotation()
175 "Bool", AttributeValue.booleanAttributeValue(true), in sampleLinks()
176 "Long", AttributeValue.longAttributeValue(299792458L), in sampleLinks()
[all …]
/external/opencensus-java/contrib/spring/src/main/java/io/opencensus/contrib/spring/aop/
DHandler.java20 import io.opencensus.trace.AttributeValue;
44 Map<String, AttributeValue> attributes = new HashMap<String, AttributeValue>(); in proceed()
47 "message", AttributeValue.stringAttributeValue(message == null ? "null" : message)); in proceed()
48 attributes.put("type", AttributeValue.stringAttributeValue(t.getClass().toString())); in proceed()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/
DNoRecordEventsSpanImpl.java21 import io.opencensus.trace.AttributeValue;
41 public void addAnnotation(String description, Map<String, AttributeValue> attributes) { in addAnnotation()
52 public void putAttribute(String key, AttributeValue value) { in putAttribute()
58 public void putAttributes(Map<String, AttributeValue> attributes) { in putAttributes()
DRecordEventsSpanImpl.java30 import io.opencensus.trace.AttributeValue;
245 ? SpanData.Attributes.create(Collections.<String, AttributeValue>emptyMap(), 0) in toSpanData()
276 public void putAttribute(String key, AttributeValue value) { in putAttribute()
289 public void putAttributes(Map<String, AttributeValue> attributes) { in putAttributes()
301 public void addAnnotation(String description, Map<String, AttributeValue> attributes) { in addAnnotation()
481 private static final class AttributesWithCapacity extends LinkedHashMap<String, AttributeValue> {
498 private void putAttribute(String key, AttributeValue value) { in putAttribute()
505 private void putAttributes(Map<String, AttributeValue> attributes) { in putAttributes()
517 protected boolean removeEldestEntry(Map.Entry<String, AttributeValue> eldest) { in removeEldestEntry()
/external/opencensus-java/exporters/trace/zipkin/src/test/java/io/opencensus/exporter/trace/zipkin/
DZipkinExporterHandlerTest.java24 import io.opencensus.trace.AttributeValue;
57 private static final Map<String, AttributeValue> attributes = Collections.emptyMap();
193 Map<String, AttributeValue> attributeMap = new HashMap<String, AttributeValue>(); in generateSpan_WithAttributes()
194 attributeMap.put("string", AttributeValue.stringAttributeValue("string value")); in generateSpan_WithAttributes()
195 attributeMap.put("boolean", AttributeValue.booleanAttributeValue(false)); in generateSpan_WithAttributes()
196 attributeMap.put("long", AttributeValue.longAttributeValue(9999L)); in generateSpan_WithAttributes()
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/grpc/helloworld/
DHelloWorldServer.java36 import io.opencensus.trace.AttributeValue;
69 span.putAttribute("my_attribute", AttributeValue.stringAttributeValue("blue")); in performWork()
160 span.putAttribute("my_attribute", AttributeValue.stringAttributeValue("red")); in sayHello()
164 "name", AttributeValue.stringAttributeValue(req.getName()), in sayHello()
165 "name length", AttributeValue.longAttributeValue(req.getName().length()))); in sayHello()
/external/opencensus-java/api/src/test/java/io/opencensus/trace/export/
DSpanDataTest.java24 import io.opencensus.trace.AttributeValue;
76 private final Map<String, AttributeValue> attributesMap = new HashMap<String, AttributeValue>();
93 attributesMap.put("MyAttributeKey1", AttributeValue.longAttributeValue(10)); in setUp()
94 attributesMap.put("MyAttributeKey2", AttributeValue.booleanAttributeValue(true)); in setUp()
216 Attributes.create(Collections.<String, AttributeValue>emptyMap(), 0), in spanData_AllDataEmpty()
278 Attributes.create(Collections.<String, AttributeValue>emptyMap(), 0), in spanDataEquals()
/external/opencensus-java/contrib/log_correlation/log4j2/src/test/java/io/opencensus/contrib/logcorrelation/log4j2/
DTestSpan.java20 import io.opencensus.trace.AttributeValue;
45 public void addAnnotation(String description, Map<String, AttributeValue> attributes) {} in addAnnotation()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/export/
DSpanData.java23 import io.opencensus.trace.AttributeValue;
408 Map<String, AttributeValue> attributeMap, int droppedAttributesCount) { in create()
413 new HashMap<String, AttributeValue>( in create()
424 public abstract Map<String, AttributeValue> getAttributeMap(); in getAttributeMap()
/external/python/pyasn1-modules/pyasn1_modules/
Drfc2986.py28 AttributeValue = rfc5280.AttributeValue variable

12