use of com.navercorp.pinpoint.io.header.Header in project pinpoint by naver.
the class HeaderTBaseSerializer2 method serialize.
public void serialize(TBase<?, ?> base, OutputStream outputStream) throws TException {
tOutputStreamTransport.open(outputStream);
try {
final Header header = tBaseLocator.headerLookup(base);
if (header == null) {
throw new TException("header must not be null base:" + base);
}
HeaderUtils.writeHeader(protocol, header);
base.write(protocol);
} finally {
tOutputStreamTransport.close();
}
}
use of com.navercorp.pinpoint.io.header.Header in project pinpoint by naver.
the class SpanService method newMessage.
private <T> Message<T> newMessage(T requestData, short serviceType) {
final Header header = new HeaderV2(Header.SIGNATURE, HeaderV2.VERSION, serviceType);
final HeaderEntity headerEntity = new HeaderEntity(new HashMap<>());
return new DefaultMessage<>(header, headerEntity, requestData);
}
use of com.navercorp.pinpoint.io.header.Header in project pinpoint by naver.
the class AgentService method newMessage.
private <T> Message<T> newMessage(T requestData, short type) {
final Header header = new HeaderV2(Header.SIGNATURE, HeaderV2.VERSION, type);
final HeaderEntity headerEntity = new HeaderEntity(Collections.emptyMap());
return new DefaultMessage<T>(header, headerEntity, requestData);
}
Aggregations