Class Span

    • Field Detail

      • MAX_LOG_INTERVAL_MICRO_SECS

        public static final long MAX_LOG_INTERVAL_MICRO_SECS
    • Method Detail

      • setNonDiscardable

        public void setNonDiscardable()
        If a span is non-discardable, all the spans leading up to it are non-discardable as well
        Overrides:
        setNonDiscardable in class AbstractSpan<Span>
      • onAfterStart

        protected void onAfterStart()
        Description copied from class: AbstractSpan
        Called after the span has been started and its parent references are set
        Overrides:
        onAfterStart in class AbstractSpan<Span>
      • withType

        public Span withType​(@Nullable
                             java.lang.String type)
        Keywords of specific relevance in the span's domain (eg: 'db', 'template', 'ext', etc)
      • withSubtype

        public Span withSubtype​(@Nullable
                                java.lang.String subtype)
        Sets the span's subtype, related to the (eg: 'mysql', 'postgresql', 'jsf' etc)
      • withAction

        public Span withAction​(@Nullable
                               java.lang.String action)
        Action related to this span (eg: 'query', 'render' etc)
      • setType

        @Deprecated
        public void setType​(@Nullable
                            java.lang.String type,
                            @Nullable
                            java.lang.String subtype,
                            @Nullable
                            java.lang.String action)
        Deprecated.
        Sets span.type, span.subtype and span.action. If no subtype and action are provided, assumes the legacy usage of hierarchical typing system and attempts to split the type by dots to discover subtype and action. TODO: remove in 2.0 - no need for that once we decide to drop support for old agent usages
      • getStacktrace

        @Nullable
        public java.lang.Throwable getStacktrace()
      • getType

        @Nullable
        public java.lang.String getType()
      • getSubtype

        @Nullable
        public java.lang.String getSubtype()
      • getAction

        @Nullable
        public java.lang.String getAction()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • withStacktrace

        public Span withStacktrace​(java.lang.Throwable stacktrace)
      • setStackTrace

        public void setStackTrace​(java.util.List<StackFrame> stackTrace)
      • getStackFrames

        @Nullable
        public java.util.List<StackFrame> getStackFrames()