Interface TracedActivity

  • All Superinterfaces:
    com.newrelic.api.agent.AttributeHolder, com.newrelic.api.agent.Segment
    All Known Implementing Classes:
    NoOpSegment

    @Deprecated
    public interface TracedActivity
    extends com.newrelic.api.agent.Segment
    Deprecated.
    Do not use. Use Segment instead. Note: TracedActivity has been exposed on the public api as Segment. Consider using Segment instead. A timed activity for a transaction. This activity will appear as a transaction trace segment, but will not have any children and may be reported as asynchronous. The exclusive time of this activity is the time between the calls to Transaction.createAndStartTracedActivity() and (finish() or finish(Throwable t)).
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void finish()
      Deprecated.
      Stop timing the activity.
      void finish​(java.lang.Throwable t)
      Deprecated.
      Stop timing the activity.
      TracedMethod getTracedMethod()
      Deprecated.
      Returns the underlying TracedMethod of this activity.
      void ignoreIfUnfinished()
      Deprecated.
      Do not report this activity in its parent transaction.
      void setAsyncThreadName​(java.lang.String threadName)
      Deprecated.
      • Methods inherited from interface com.newrelic.api.agent.AttributeHolder

        addCustomAttribute, addCustomAttribute, addCustomAttribute, addCustomAttributes
      • Methods inherited from interface com.newrelic.api.agent.Segment

        addOutboundRequestHeaders, end, endAsync, getTransaction, ignore, reportAsExternal, setMetricName
    • Method Detail

      • getTracedMethod

        TracedMethod getTracedMethod()
        Deprecated.
        Returns the underlying TracedMethod of this activity. Normal api calls (e.g. Datastore, external) can be applied to the returned traced method as long as the activity is not finished.
      • setAsyncThreadName

        @Deprecated
        void setAsyncThreadName​(java.lang.String threadName)
        Deprecated.
        This method has been deprecated as it does not do what it was originally intended to do. Functionally it is a NoOp method.
      • ignoreIfUnfinished

        void ignoreIfUnfinished()
        Deprecated.
        Do not report this activity in its parent transaction. Has no effect if the activity is finished.
      • finish

        void finish()
        Deprecated.
        Stop timing the activity. Only the first call to this method will have an effect.
      • finish

        void finish​(java.lang.Throwable t)
        Deprecated.
        Stop timing the activity. Only the first call to this method will have an effect.
        Parameters:
        t - an error to pass to the agent. Note that this error is not automatically reported to APM.