use of io.vertx.core.http.impl.HttpClientResponseImpl in project pinpoint by naver.
the class HttpClientRequestImplDoHandleResponseInterceptor method doInBeforeTrace.
@Override
public void doInBeforeTrace(SpanEventRecorder recorder, AsyncContext asyncContext, Object target, Object[] args) {
if (!validate(args)) {
return;
}
final HttpClientResponseImpl response = (HttpClientResponseImpl) args[0];
if (statusCode) {
recorder.recordAttribute(AnnotationKey.HTTP_STATUS_CODE, response.statusCode());
}
((AsyncContextAccessor) response)._$PINPOINT$_setAsyncContext(asyncContext);
}
use of io.vertx.core.http.impl.HttpClientResponseImpl in project pinpoint by naver.
the class HttpClientRequestImplDoHandleResponseInterceptor method doInBeforeTrace.
@Override
public void doInBeforeTrace(SpanEventRecorder recorder, AsyncTraceId asyncTraceId, Object target, Object[] args) {
if (!validate(args)) {
return;
}
final HttpClientResponseImpl response = (HttpClientResponseImpl) args[0];
if (statusCode) {
recorder.recordAttribute(AnnotationKey.HTTP_STATUS_CODE, response.statusCode());
}
((AsyncTraceIdAccessor) response)._$PINPOINT$_setAsyncTraceId(asyncTraceId);
}
Aggregations