Class RequestTraceSpan

    • Method Detail

      • getId

        public UUID getId()
      • getTraceId

        public UUID getTraceId()
      • setTraceId

        public void setTraceId​(UUID traceId)
      • getStartInstant

        public Instant getStartInstant()
      • setStartInstant

        public void setStartInstant​(Instant startTime)
      • getTimeOccured

        public long getTimeOccured()
        Gets the time in milliseconds since the epoch (midnight, January 1st 1970) when the the request event occurred.
        Returns:
        the time the trace occurred
      • getSpanDuration

        public long getSpanDuration()
        Gets the elapsed time since the current request trace has started
        Returns:
        nanoseconds since the current request trace has started.
      • setSpanDuration

        public void setSpanDuration​(long spanTime)
        Sets the elapsed time since the current request trace has started
        Parameters:
        spanTime - Nanoseconds since the current request trace has started
      • getEventType

        public EventType getEventType()
      • getEventName

        public String getEventName()
      • setEventName

        public void setEventName​(String eventName)
      • addSpanTag

        public void addSpanTag​(String name,
                               String value)
        Adds more information about a span
        Parameters:
        name -
        value -
      • addSpanTag

        public void addSpanTag​(io.opentracing.tag.Tag tag,
                               String value)
        Adds more information about a span
        Parameters:
        tag -
        value -
      • getTraceEndTime

        public Instant getTraceEndTime()
      • setTraceEndTime

        public void setTraceEndTime​(Instant endTime)
      • setEventType

        public void setEventType​(EventType spanType)