Class Span

    • Constructor Detail

      • Span

        public Span​(String operationName,
                    String applicationName)
        Constructor that creates a RequestTraceSpan object and sets the application name that this Span was created from.
        Parameters:
        operationName - The name of the span
        applicationName - The name of the application that this Span was created from
    • Method Detail

      • getApplicationName

        public String getApplicationName()
        Returns the name of the application that this Span was created from.
        Returns:
        The name of the application that this Span was created from.
      • context

        public io.opentracing.SpanContext context()
        Specified by:
        context in interface io.opentracing.Span
      • setTag

        public io.opentracing.Span setTag​(String tagName,
                                          String tagValue)
        Specified by:
        setTag in interface io.opentracing.Span
      • setTag

        public io.opentracing.Span setTag​(String tagName,
                                          boolean tagValue)
        Specified by:
        setTag in interface io.opentracing.Span
      • setTag

        public io.opentracing.Span setTag​(String tagName,
                                          Number tagValue)
        Specified by:
        setTag in interface io.opentracing.Span
      • setTag

        public <T> io.opentracing.Span setTag​(io.opentracing.tag.Tag<T> tag,
                                              T tagValue)
        Specified by:
        setTag in interface io.opentracing.Span
      • log

        public io.opentracing.Span log​(Map<String,​?> map)
        Specified by:
        log in interface io.opentracing.Span
      • log

        public io.opentracing.Span log​(long timestampMicroseconds,
                                       Map<String,​?> map)
        Specified by:
        log in interface io.opentracing.Span
      • log

        public io.opentracing.Span log​(String logEvent)
        Specified by:
        log in interface io.opentracing.Span
      • log

        public io.opentracing.Span log​(long timestampMicroseconds,
                                       String logEvent)
        Specified by:
        log in interface io.opentracing.Span
      • setBaggageItem

        public io.opentracing.Span setBaggageItem​(String key,
                                                  String value)
        Specified by:
        setBaggageItem in interface io.opentracing.Span
      • getBaggageItem

        public String getBaggageItem​(String key)
        Specified by:
        getBaggageItem in interface io.opentracing.Span
      • setOperationName

        public io.opentracing.Span setOperationName​(String operationName)
        Specified by:
        setOperationName in interface io.opentracing.Span
      • finish

        public void finish()
        Specified by:
        finish in interface io.opentracing.Span
      • finish

        public void finish​(long finishMicros)
        Specified by:
        finish in interface io.opentracing.Span
      • setStartTime

        public void setStartTime​(long startTimeMicros)
        Sets the start time of the Span.
        Parameters:
        startTimeMicros - The start time of the Span in Microseconds