Package com.newrelic.agent.bridge
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.SegmentDeprecated.Do not use. UseSegmentinstead. Note: TracedActivity has been exposed on the public api asSegment. Consider usingSegmentinstead. 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 toTransaction.createAndStartTracedActivity()and (finish()orfinish(Throwable t)).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidfinish()Deprecated.Stop timing the activity.voidfinish(java.lang.Throwable t)Deprecated.Stop timing the activity.TracedMethodgetTracedMethod()Deprecated.Returns the underlyingTracedMethodof this activity.voidignoreIfUnfinished()Deprecated.Do not report this activity in its parent transaction.voidsetAsyncThreadName(java.lang.String threadName)Deprecated.
-
-
-
Method Detail
-
getTracedMethod
TracedMethod getTracedMethod()
Deprecated.Returns the underlyingTracedMethodof 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.
-
-