Package zipkin2.proto3
Class Annotation
- java.lang.Object
-
- com.squareup.wire.Message<Annotation,Annotation.Builder>
-
- zipkin2.proto3.Annotation
-
- All Implemented Interfaces:
java.io.Serializable
public final class Annotation extends com.squareup.wire.Message<Annotation,Annotation.Builder>
Associates an event that explains latency with a timestamp. Unlike log statements, annotations are often codes. Ex. "ws" for WireSend The next id is 3.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotation.Builder
-
Field Summary
Fields Modifier and Type Field Description static com.squareup.wire.ProtoAdapter<Annotation>ADAPTERstatic java.lang.LongDEFAULT_TIMESTAMPstatic java.lang.StringDEFAULT_VALUEjava.lang.LongtimestampEpoch microseconds of this event.java.lang.StringvalueUsually a short tag indicating an event, like "error" While possible to add larger data, such as garbage collection details, low cardinality event names both keep the size of spans down and also are easy to search against.
-
Constructor Summary
Constructors Constructor Description Annotation(java.lang.Long timestamp, java.lang.String value)Annotation(java.lang.Long timestamp, java.lang.String value, okio.ByteString unknownFields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()Annotation.BuildernewBuilder()java.lang.StringtoString()
-
-
-
Field Detail
-
ADAPTER
public static final com.squareup.wire.ProtoAdapter<Annotation> ADAPTER
-
DEFAULT_TIMESTAMP
public static final java.lang.Long DEFAULT_TIMESTAMP
-
DEFAULT_VALUE
public static final java.lang.String DEFAULT_VALUE
- See Also:
- Constant Field Values
-
timestamp
public final java.lang.Long timestamp
Epoch microseconds of this event. For example, 1502787600000000 corresponds to 2017-08-15 09:00 UTC This value should be set directly by instrumentation, using the most precise value possible. For example, gettimeofday or multiplying epoch millis by 1000.
-
value
public final java.lang.String value
Usually a short tag indicating an event, like "error" While possible to add larger data, such as garbage collection details, low cardinality event names both keep the size of spans down and also are easy to search against.
-
-
Method Detail
-
newBuilder
public Annotation.Builder newBuilder()
- Specified by:
newBuilderin classcom.squareup.wire.Message<Annotation,Annotation.Builder>
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classcom.squareup.wire.Message<Annotation,Annotation.Builder>
-
-