in spectator-ext-ipc/src/main/java/com/netflix/spectator/ipc/IpcLogEntry.java [672:690]
private void finalizeFields() {
// Do final checks and update fields that haven't been explicitly set if needed
// before logging.
if (result == null) {
result = status == null ? IpcResult.success : status.result();
}
if (status == null) {
status = (result == IpcResult.success) ? IpcStatus.success : IpcStatus.unexpected_error;
}
if (attempt == null) {
attempt = IpcAttempt.forAttemptNumber(1);
}
if (attemptFinal == null) {
attemptFinal = IpcAttemptFinal.is_true;
}
if (endpoint == null) {
endpoint = (path == null || httpStatus == 404) ? "unknown" : PathSanitizer.sanitize(path);
}
}