[#2826] Deprecate TraceContext.getAsyncId()

- Delete unnecessary code
This commit is contained in:
emeroad
2017-04-17 18:26:52 +09:00
committed by Woonduk Kang
parent e86b083f38
commit fff109d32f
2 changed files with 6 additions and 2 deletions
@@ -79,7 +79,7 @@ public interface TraceContext {
boolean cacheSql(ParsingResult parsingResult);
TraceId createTraceId(String transactionId, long parentSpanID, long spanID, short flags);
TraceId createTraceId(String transactionId, long parentSpanId, long spanId, short flags);
Trace disableSampling();
@@ -87,6 +87,11 @@ public interface TraceContext {
ServerMetaDataHolder getServerMetaDataHolder();
/**
* internal api
* @deprecated Since 1.7.0
*/
@Deprecated
int getAsyncId();
JdbcContext getJdbcContext();
@@ -159,7 +159,6 @@ public class ApiInterceptor implements AroundInterceptor {
try {
if (isAsynchronousInvocation(target, args, result, throwable)) {
// set asynchronous trace
this.traceContext.getAsyncId();
final AsyncTraceId asyncTraceId = trace.getAsyncTraceId();
recorder.recordNextAsyncId(asyncTraceId.getAsyncId());
// type check isAsynchronousInvocation