Search in sources :

Example 1 with SessionRequest

use of org.apache.http.nio.reactor.SessionRequest in project incubator-skywalking by apache.

the class SuccessInterceptor method beforeMethod.

@Override
public void beforeMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, MethodInterceptResult result) throws Throwable {
    SessionRequest request = (SessionRequest) allArguments[0];
    AbstractSpan localSpan = ContextManager.createLocalSpan("AsyncThread/execute");
    localSpan.setComponent(ComponentsDefine.HTTP_ASYNC_CLIENT).setLayer(SpanLayer.HTTP);
    Object cacheValue = ((EnhancedInstance) request).getSkyWalkingDynamicField();
    ContextManager.continued((ContextSnapshot) cacheValue);
}
Also used : EnhancedInstance(org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance) SessionRequest(org.apache.http.nio.reactor.SessionRequest) AbstractSpan(org.apache.skywalking.apm.agent.core.context.trace.AbstractSpan)

Aggregations

SessionRequest (org.apache.http.nio.reactor.SessionRequest)1 AbstractSpan (org.apache.skywalking.apm.agent.core.context.trace.AbstractSpan)1 EnhancedInstance (org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance)1