Package co.elastic.apm.agent.impl
Interface ActivationListener
-
public interface ActivationListenerA callback forAbstractSpanandErrorCaptureactivation and deactivation eventsThe constructor can optionally have a
ElasticApmTracerparameter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidafterDeactivate(ErrorCapture deactivatedError)A callback forErrorCapture.deactivate()voidafterDeactivate(AbstractSpan<?> deactivatedSpan)A callback forAbstractSpan.deactivate()voidbeforeActivate(ErrorCapture error)A callback forErrorCapture.activate()voidbeforeActivate(AbstractSpan<?> span)A callback forAbstractSpan.activate()
-
-
-
Method Detail
-
beforeActivate
void beforeActivate(AbstractSpan<?> span) throws java.lang.Throwable
A callback forAbstractSpan.activate()- Parameters:
span- theAbstractSpanthat is being activated- Throws:
java.lang.Throwable- if there was an error while calling this method
-
beforeActivate
void beforeActivate(ErrorCapture error) throws java.lang.Throwable
A callback forErrorCapture.activate()- Parameters:
error- theErrorCapturethat is being activated- Throws:
java.lang.Throwable- if there was an error while calling this method
-
afterDeactivate
void afterDeactivate(AbstractSpan<?> deactivatedSpan) throws java.lang.Throwable
A callback forAbstractSpan.deactivate()Note: the corresponding span may already be
endedandrecycled. That's why there is noAbstractSpanparameter.- Parameters:
deactivatedSpan- the context that has just been deactivated- Throws:
java.lang.Throwable- if there was an error while calling this method
-
afterDeactivate
void afterDeactivate(ErrorCapture deactivatedError) throws java.lang.Throwable
A callback forErrorCapture.deactivate()- Parameters:
deactivatedError- the error that has just been deactivated- Throws:
java.lang.Throwable- if there was an error while calling this method
-
-