Repository navigation
[Chore] Feed Processing SSE 진단 로그 추가 - #90
Open
lioba00700 wants to merge 1 commit into
Open
lioba00700 wants to merge 1 commit into
lioba00700 wants to merge 1 commit into
Conversation
Contributor
|
Warning Review limit reachedThis review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry. Next included review available in 57 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (6)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 작업 내용
QA에서 피드 업로드 후 AI 처리 SSE가 반복적으로 실패하는 원인을 확인할 수 있도록 Feed Processing 전체 구간에 진단 로그를 추가했습니다.
업로드 요청부터 job 생성, 초기 status 조회, SSE 연결/응답/메시지, polling fallback, 앱 lifecycle cleanup까지 하나의
jobId흐름으로 추적할 수 있습니다.🔍 확인하려는 문제
현재 Feed SSE는 공통 인증 client가 아니라
expo/fetch로 직접 연결하며, 연결 시점의 access token을 직접 읽습니다. 따라서 실패 원인이 인증 만료, HTTP 응답 거절, content-type/stream body 문제, terminal event 누락, 앱 background 전환 중 abort 중 어디에 있는지 기존 로그만으로 구분하기 어려웠습니다.이번 변경은 동작을 수정하지 않고 실패 지점을 관찰할 수 있는 로그만 추가합니다.
✅ 주요 변경 사항
업로드 및 Job 생성
jobId,feedId, 초기 status 기록SSE 연결
Monitoring 및 Lifecycle
민감정보 보호
🧪 확인 사항
📌 QA 확인 방법
콘솔에서
[FeedProcessingDebug]로 필터링한 뒤 피드 업로드를 한 번 재현해주세요.특히 다음 로그를 함께 확인하면 원인을 빠르게 좁힐 수 있습니다.
[SSE] response-received: HTTP status와 content-type[SSE] response-rejected: 401/403/5xx 및 response preview[SSE] stream-read-failed: stream 중단 시점[Monitor] stream-fallback-to-polling: fallback 원인[Coordinator] app-state-changed: background 전환 영향원인이 확정되면 진단 로그 유지 범위와 실제 수정은 별도 변경으로 정리합니다.