APISonar


org.glowroot.wire.api.model.CollectorServiceGrpc.CollectorServiceStub.log

> org > glowroot > wire > api > model > CollectorServiceGrpc > CollectorServiceStub > log
org APIs glowroot APIs wire APIs api APIs model APIs CollectorServiceGrpc APIs CollectorServiceStub APIs log APIs

Example 1
private final CollectorServiceStub collectorServiceStub;

    public void log(LogEvent logEvent) {
        if (serverConnection.suppressLogCollector()) {
            return;
        }
        final LogMessage logMessage = LogMessage.newBuilder()
                .setAgentId(agentId)
                .setLogEvent(logEvent)
                .build();
        serverConnection.callWithAFewRetries(new GrpcCall<EmptyMessage>() {
            @Override
            public void call(StreamObserver<EmptyMessage> responseObserver) {
                collectorServiceStub.log(logMessage, responseObserver);
            }
        });
    }