use of com.navercorp.pinpoint.grpc.trace.PResult in project pinpoint by naver.
the class GrpcStringMetaDataHandler method handleRequest.
@Override
public void handleRequest(ServerRequest<GeneratedMessageV3> serverRequest, ServerResponse<GeneratedMessageV3> serverResponse) {
final GeneratedMessageV3 data = serverRequest.getData();
if (data instanceof PStringMetaData) {
PResult result = handleStringMetaData((PStringMetaData) data);
serverResponse.write(result);
} else {
logger.warn("Invalid request type. serverRequest={}", serverRequest);
throw Status.INTERNAL.withDescription("Bad Request(invalid request type)").asRuntimeException();
}
}
Aggregations