From c4b610982e89f70260f0827d67d1f022b944585f Mon Sep 17 00:00:00 2001 From: ascrutae Date: Wed, 8 Mar 2017 06:25:52 +0800 Subject: [PATCH] fix java doc issue --- .../plugin/motan/MotanConsumerInterceptor.java | 11 +++++------ .../plugin/motan/MotanProviderInterceptor.java | 13 +++++-------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/skywalking-sniffer/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanConsumerInterceptor.java b/skywalking-sniffer/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanConsumerInterceptor.java index da0619081..bbddc5899 100644 --- a/skywalking-sniffer/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanConsumerInterceptor.java +++ b/skywalking-sniffer/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanConsumerInterceptor.java @@ -14,12 +14,11 @@ import com.weibo.api.motan.rpc.Request; import com.weibo.api.motan.rpc.Response; import com.weibo.api.motan.rpc.URL; + /** - * Current trace segment will ref the trace segment from previous level if the serialized context data that fetch - * from {@link Request#getAttachments()} is not null. - * - * {@link MotanConsumerInterceptor} intercept all constructor of {@link com.weibo.api.motan.rpc.AbstractProvider} for record - * the request url from consumer side. + * {@link MotanProviderInterceptor} create span by fetch request url from + * {@link EnhancedClassInstanceContext#context} and transport serialized context + * data to provider side through {@link Request#setAttachment(String, String)}. * * @author zhangxin */ @@ -48,7 +47,7 @@ public class MotanConsumerInterceptor implements InstanceConstructorInterceptor, public void beforeMethod(EnhancedClassInstanceContext context, InstanceMethodInvokeContext interceptorContext, MethodInterceptResult result) { URL url = (URL) context.get(KEY_NAME_OF_REQUEST_URL); - com.weibo.api.motan.rpc.Request request = (com.weibo.api.motan.rpc.Request) interceptorContext.allArguments()[0]; + Request request = (Request) interceptorContext.allArguments()[0]; if (url != null) { Span span = ContextManager.INSTANCE.createSpan(generateOperationName(url, request)); Tags.PEER_HOST.set(span, url.getHost()); diff --git a/skywalking-sniffer/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanProviderInterceptor.java b/skywalking-sniffer/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanProviderInterceptor.java index 16fb55ab4..51d4a94e2 100644 --- a/skywalking-sniffer/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanProviderInterceptor.java +++ b/skywalking-sniffer/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanProviderInterceptor.java @@ -13,19 +13,16 @@ import com.weibo.api.motan.rpc.Request; import com.weibo.api.motan.rpc.Response; /** - * {@link MotanProviderInterceptor} create span by fetch request url from - * {@link EnhancedClassInstanceContext#context} and transport serialized context - * data to provider side through {@link Request#setAttachment(String, String)}. + * Current trace segment will ref the trace segment if the serialized trace context that fetch + * from {@link Request#getAttachments()} is not null. + * + * {@link MotanConsumerInterceptor} intercept all constructor of {@link com.weibo.api.motan.rpc.AbstractProvider} for record + * the request url from consumer side. * * @author zhangxin */ public class MotanProviderInterceptor implements InstanceMethodsAroundInterceptor { - /** - * Context name of request url in {@link EnhancedClassInstanceContext#context}. - */ - private static final String CONTEXT_NAME_OF_REQUEST_URL = "REQUEST_URL"; - /** * Attachment key of the serialized context data. */