Class SpanBuilder

    • Method Detail

      • build

        public Span build()
      • setStartTsMillis

        public SpanBuilder setStartTsMillis​(long startTsMillis)
        Optionally you can manually set the Span's startTs. If not specified, System.currentTimeMillis() will be used.
      • setEndTsMillis

        public SpanBuilder setEndTsMillis​(long endTsMillis)
        Optionally you can manually set the Span's endTs. If not specified, startTsMillis will be used (see setStartTsMillis(long))..
      • setAttribute

        public SpanBuilder setAttribute​(String key,
                                        long value)
        Additional attribute to be attached to this Span.
      • setAttribute

        public SpanBuilder setAttribute​(String key,
                                        double value)
        Additional attribute to be attached to this Span.