Skip to content

[NO-ISSUE] feat: LLM Obs dev/prod env 분리 및 스팬 태그 보강 - #134

Merged
jiwon11 merged 2 commits into
developfrom
feature/llm-span-enrichment
Oct 10, 2026
Merged

jiwon11 merged 2 commits into
developfrom
feature/llm-span-enrichment

Conversation

@jiwon11

@jiwon11 jiwon11 commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

요약 (Summary)

  • dev와 prod의 LLM Observability 데이터가 모두 env:dev로 섞이던 문제를 고쳤습니다. Procfile의 -Ddd.env=dev 하드코딩을 -Ddd.env=${DD_ENV:-dev}로 바꿔 EB 환경변수로 env를 정합니다.
  • OpenAiChatClientImpl의 응답 파싱을 LLM 스팬 안으로 옮겨 JSON 파싱 실패도 error 스팬으로 남깁니다. 입출력, 토큰, finish_reason은 파싱 전에 기록해 잘린 응답이 원인일 때도 스팬에서 보입니다.
  • 스팬에 use_case, prompt_hash(system 프롬프트 SHA-256 앞 8자), finish_reason, retries, graphql.operation, usr.id 태그를 추가했습니다. GraphQL 경로도 REST처럼 MDC에 usr.id를 넣습니다(UserIdArgumentGraphqlResolver).
  • 계측은 모두 runCatching 안이라 사용자 응답, 예외, ai_call 로그는 그대로입니다. GraphQL 액세스 로그에 usr.id가 새로 찍힙니다.

PR 유형

  • 신규 기능 추가
  • 버그 수정
  • 리팩토링
  • 문서 변경
  • 기타

@coderabbitai

coderabbitai Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: YAPP-Github/jobdori-server/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cf096614-c4b1-4a85-9812-c1041fff0bbd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jiwon11 jiwon11 self-assigned this Oct 10, 2026
@jiwon11
jiwon11 merged commit b321a8d into develop Oct 10, 2026
2 checks passed
@jiwon11
jiwon11 deleted the feature/llm-span-enrichment branch October 10, 2026 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant