Class Annotation.Builder

java.lang.Object
com.squareup.wire.Message.Builder<Annotation,​Annotation.Builder>
zipkin2.proto3.Annotation.Builder
Enclosing class:
Annotation

public static final class Annotation.Builder
extends com.squareup.wire.Message.Builder<Annotation,​Annotation.Builder>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    Long timestamp  
    String value  
  • Constructor Summary

    Constructors 
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    Annotation build()  
    Annotation.Builder timestamp​(Long timestamp)
    Epoch microseconds of this event.
    Annotation.Builder value​(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.

    Methods inherited from class com.squareup.wire.Message.Builder

    addUnknownField, addUnknownFields, buildUnknownFields, clearUnknownFields, getUnknownFieldsBuffer$wire_runtime, getUnknownFieldsByteString$wire_runtime, getUnknownFieldsWriter$wire_runtime, setUnknownFieldsBuffer$wire_runtime, setUnknownFieldsByteString$wire_runtime, setUnknownFieldsWriter$wire_runtime

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • timestamp

      public Annotation.Builder timestamp​(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 Annotation.Builder value​(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.
    • build

      public Annotation build()
      Specified by:
      build in class com.squareup.wire.Message.Builder<Annotation,​Annotation.Builder>