apm-sniffer/apm-sdk-plugin/elasticsearch-7.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/elasticsearch/v7/support/ActionListenerAdapter.java [41:56]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void onResponse(final T o) {
        try {
            if (restClientCache.getContextSnapshot() != null) {
                continueContext(Constants.ON_RESPONSE_SUFFIX);
            }
            if (restClientCache.getActionListener() != null) {
                restClientCache.getActionListener().onResponse(o);
            }
        } catch (Throwable t) {
            ContextManager.activeSpan().log(t);
            throw t;
        } finally {
            restClientCache.setContextSnapshot(null);
            ContextManager.stopSpan();
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



apm-sniffer/apm-sdk-plugin/elasticsearch-6.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/elasticsearch/v6/support/ActionListenerAdapter.java [41:56]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void onResponse(final T o) {
        try {
            if (restClientCache.getContextSnapshot() != null) {
                continueContext(Constants.ON_RESPONSE_SUFFIX);
            }
            if (restClientCache.getActionListener() != null) {
                restClientCache.getActionListener().onResponse(o);
            }
        } catch (Throwable t) {
            ContextManager.activeSpan().log(t);
            throw t;
        } finally {
            restClientCache.setContextSnapshot(null);
            ContextManager.stopSpan();
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



