Class TraceOptions.Builder

  • Enclosing class:
    TraceOptions

    public static final class TraceOptions.Builder
    extends java.lang.Object
    Builder class for TraceOptions.
    Since:
    0.5
    • Field Detail

      • options

        private byte options
    • Constructor Detail

      • Builder

        private Builder​(byte options)
    • Method Detail

      • setIsSampled

        @Deprecated
        public TraceOptions.Builder setIsSampled()
        Deprecated.
        Use Builder.setIsSampled(true).
        Sets the sampling bit in the options to true.
        Returns:
        this.
        Since:
        0.5
      • setIsSampled

        public TraceOptions.Builder setIsSampled​(boolean isSampled)
        Sets the sampling bit in the options.
        Parameters:
        isSampled - the sampling bit.
        Returns:
        this.
        Since:
        0.7
      • build

        public TraceOptions build()
        Builds and returns a TraceOptions with the desired options.
        Returns:
        a TraceOptions with the desired options.
        Since:
        0.5