private static Attributes.Builder toAttributesBuilderProto( Map<String, io.opencensus.trace.AttributeValue> attributes, int droppedAttributesCount) { Attributes.Builder attributesBuilder = Attributes.newBuilder().setDroppedAttributesCount(droppedAttributesCount); for (Map.Entry<String, io.opencensus.trace.AttributeValue> label : attributes.entrySet()) { AttributeValue value = toAttributeValueProto(label.getValue()); if (value != null) { attributesBuilder.putAttributeMap(mapKey(label.getKey()), value); } } return attributesBuilder; }
private static Attributes.Builder toAttributesBuilderProto( Map<String, io.opencensus.trace.AttributeValue> attributes, int droppedAttributesCount) { Attributes.Builder attributesBuilder = Attributes.newBuilder().setDroppedAttributesCount(droppedAttributesCount); for (Map.Entry<String, io.opencensus.trace.AttributeValue> label : attributes.entrySet()) { AttributeValue value = toAttributeValueProto(label.getValue()); if (value != null) { attributesBuilder.putAttributeMap(mapKey(label.getKey()), value); } } return attributesBuilder; }
public Builder mergeFrom(com.google.devtools.cloudtrace.v2.Span.Attributes other) { if (other == com.google.devtools.cloudtrace.v2.Span.Attributes.getDefaultInstance()) return this; internalGetMutableAttributeMap().mergeFrom(other.internalGetAttributeMap()); if (other.getDroppedAttributesCount() != 0) { setDroppedAttributesCount(other.getDroppedAttributesCount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(com.google.devtools.cloudtrace.v2.Span.Attributes other) { if (other == com.google.devtools.cloudtrace.v2.Span.Attributes.getDefaultInstance()) return this; internalGetMutableAttributeMap().mergeFrom(other.internalGetAttributeMap()); if (other.getDroppedAttributesCount() != 0) { setDroppedAttributesCount(other.getDroppedAttributesCount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }