/** * * * <pre> * A set of attributes on the link. You have have up to 32 attributes per * link. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;</code> */ public Builder setAttributes( com.google.devtools.cloudtrace.v2.Span.Attributes.Builder builderForValue) { if (attributesBuilder_ == null) { attributes_ = builderForValue.build(); onChanged(); } else { attributesBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * A set of attributes on the span. You can have up to 32 attributes per * span. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;</code> */ public Builder setAttributes( com.google.devtools.cloudtrace.v2.Span.Attributes.Builder builderForValue) { if (attributesBuilder_ == null) { attributes_ = builderForValue.build(); onChanged(); } else { attributesBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * A set of attributes on the annotation. You can have up to 4 attributes * per Annotation. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;</code> */ public Builder setAttributes( com.google.devtools.cloudtrace.v2.Span.Attributes.Builder builderForValue) { if (attributesBuilder_ == null) { attributes_ = builderForValue.build(); onChanged(); } else { attributesBuilder_.setMessage(builderForValue.build()); } return this; } /**
.setDescription( TruncatableString.newBuilder().setValue(ANNOTATION_TEXT).build()) .setAttributes(Span.Attributes.newBuilder().build()) .build()) .setTime( .setDescription( TruncatableString.newBuilder().setValue(ANNOTATION_TEXT).build()) .setAttributes(Span.Attributes.newBuilder().build()) .build()) .setTime( .setTraceId(TRACE_ID) .setSpanId(SPAN_ID) .setAttributes(Span.Attributes.newBuilder().build()) .build()) .build();
return attributes.build();
/** * * * <pre> * A set of attributes on the link. You have have up to 32 attributes per * link. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;</code> */ public Builder setAttributes( com.google.devtools.cloudtrace.v2.Span.Attributes.Builder builderForValue) { if (attributesBuilder_ == null) { attributes_ = builderForValue.build(); onChanged(); } else { attributesBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * A set of attributes on the annotation. You can have up to 4 attributes * per Annotation. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 2;</code> */ public Builder setAttributes( com.google.devtools.cloudtrace.v2.Span.Attributes.Builder builderForValue) { if (attributesBuilder_ == null) { attributes_ = builderForValue.build(); onChanged(); } else { attributesBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * A set of attributes on the span. You can have up to 32 attributes per * span. * </pre> * * <code>.google.devtools.cloudtrace.v2.Span.Attributes attributes = 7;</code> */ public Builder setAttributes( com.google.devtools.cloudtrace.v2.Span.Attributes.Builder builderForValue) { if (attributesBuilder_ == null) { attributes_ = builderForValue.build(); onChanged(); } else { attributesBuilder_.setMessage(builderForValue.build()); } return this; } /**
private static Attributes toAttributesProto( io.opencensus.trace.export.SpanData.Attributes attributes, Map<String, AttributeValue> resourceLabels, Map<String, AttributeValue> fixedAttributes) { Attributes.Builder attributesBuilder = toAttributesBuilderProto( attributes.getAttributeMap(), attributes.getDroppedAttributesCount()); attributesBuilder.putAttributeMap(AGENT_LABEL_KEY, AGENT_LABEL_VALUE); for (Entry<String, AttributeValue> entry : resourceLabels.entrySet()) { attributesBuilder.putAttributeMap(entry.getKey(), entry.getValue()); } for (Entry<String, AttributeValue> entry : fixedAttributes.entrySet()) { attributesBuilder.putAttributeMap(entry.getKey(), entry.getValue()); } return attributesBuilder.build(); }
private static Attributes toAttributesProto( io.opencensus.trace.export.SpanData.Attributes attributes, Map<String, AttributeValue> resourceLabels, Map<String, AttributeValue> fixedAttributes) { Attributes.Builder attributesBuilder = toAttributesBuilderProto( attributes.getAttributeMap(), attributes.getDroppedAttributesCount()); attributesBuilder.putAttributeMap(AGENT_LABEL_KEY, AGENT_LABEL_VALUE); for (Entry<String, AttributeValue> entry : resourceLabels.entrySet()) { attributesBuilder.putAttributeMap(entry.getKey(), entry.getValue()); } for (Entry<String, AttributeValue> entry : fixedAttributes.entrySet()) { attributesBuilder.putAttributeMap(entry.getKey(), entry.getValue()); } return attributesBuilder.build(); }