Skip to content

[HCR-421] v1.1.2#66

Closed
rettooo wants to merge 1 commit into
devfrom
hotfix/HSC-421
Closed

[HCR-421] v1.1.2#66
rettooo wants to merge 1 commit into
devfrom
hotfix/HSC-421

Conversation

@rettooo
Copy link
Copy Markdown
Contributor

@rettooo rettooo commented Mar 31, 2026

📝작업 내용


👀변경 사항


🎫 Jira Ticket

  • Jira Ticket: HCR-421

#️⃣관련 이슈

@rettooo rettooo added 🏷️ release 릴리즈 준비/버전 태깅/릴리즈 노트/릴리즈 브랜치 작업 🗂️ area: BE 백엔드 영역 🚑 hotfix 프로덕션 긴급 수정(우회/긴급 패치 포함) ☁️ area: INFRA 인프라/운영/배포 영역 release:patch 버전 patch bump: X.Y.(Z+1) deploy:intelligence-server labels Mar 31, 2026
@github-actions github-actions Bot added Customer Team 🔥 priority: P0 즉시 처리 필요(서비스/데모 블로커) labels Mar 31, 2026
@github-actions github-actions Bot changed the title v1.1.2 [HCR-421] v1.1.2 Mar 31, 2026
@rettooo rettooo closed this Mar 31, 2026
@rettooo rettooo mentioned this pull request Mar 31, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Kafka payload in the recommendation service to include a traceId. A critical issue was identified where the trace_id variable is used in the payload without being defined in the function scope or passed as an argument, which will lead to a NameError at runtime.

logger.warning("recommendation: Kafka 미설정, 발행 스킵 member_id=%s", member_id)
return
payload = {"memberId": member_id, **response.model_dump(by_alias=True)}
payload = {"traceId": trace_id, "memberId": member_id, **response.model_dump(by_alias=True)}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

trace_id 변수가 정의되지 않은 상태에서 사용되고 있습니다. publish_recommendation_to_kafka 함수의 매개변수 목록에 trace_id가 없으며, 함수 내부에서도 선언되지 않았습니다. 이로 인해 해당 코드가 실행될 때 NameError가 발생합니다. 호출부에서 trace_id를 전달하도록 수정하거나 함수 내에서 적절히 정의해야 합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🗂️ area: BE 백엔드 영역 ☁️ area: INFRA 인프라/운영/배포 영역 Customer Team deploy:intelligence-server 🚑 hotfix 프로덕션 긴급 수정(우회/긴급 패치 포함) 🔥 priority: P0 즉시 처리 필요(서비스/데모 블로커) release:patch 버전 patch bump: X.Y.(Z+1) 🏷️ release 릴리즈 준비/버전 태깅/릴리즈 노트/릴리즈 브랜치 작업

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[HSC-421] 로그 traceId 추가

1 participant