Repository navigation
Conversation
- wrangler 3.103.1은 observability.traces·destinations를 버려서 4.150.0으로 올림 - wrangler 4에서 없어진 publish 명령을 deploy로 바꿈 - production 환경에 logs·traces 내보낼 곳(newrelic-logs·newrelic-traces) 지정, 트레이스는 10% 표본·Cloudflare 저장 안 함 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011R1F79zi2fBnwMwn9JAddQ
- wrangler 4.150.0은 Node 22 이상이 필요한데 빌드 설정에 NODE_VERSION이 없음 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011R1F79zi2fBnwMwn9JAddQ
- 쿼리에 deployment_key·기기 ID·OAuth code/state가 있어 New Relic으로 나가지 않게 함 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011R1F79zi2fBnwMwn9JAddQ
junha6316
marked this pull request as ready for review
November 13, 2026 01:09
This was referenced Nov 13, 2026
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.
무엇을 바꿨나요
code-push-server-preview)의 로그와 트레이스를 Cloudflare OTLP 내보내기로 New Relic에 보냅니다.observability.traces·destinations를 "Unexpected fields" 경고만 내고 버립니다(dry-run 확인).publish명령을deploy --env production으로 바꿉니다. Workers Builds 배포 명령이pnpm run publish라서 이 스크립트를 그대로 씁니다.apps/server/.node-version을 22로 둡니다. wrangler 4는 Node 22 이상이 필요한데, Workers Builds 빌드 변수에NODE_VERSION이 없습니다.왜 필요한가요
머지 전에 준비한 것
newrelic-logs와newrelic-traces를 만들었습니다. 이름이apps/server/wrangler.toml과 같아야 합니다.cloudflare-codepush-otel을 만들었습니다. 이 키만 폐기하면 내보내기만 끊깁니다.검증
pnpm typecheck,pnpm check,CI=1 pnpm test(127개)가 모두 통과했습니다. 테스트 도구(@cloudflare/vitest-pool-workers0.6)는 자체 wrangler 3을 쓰므로 이 테스트가 wrangler 4를 검증하지는 않습니다.wrangler deploy --dry-run --env production이 경고 없이 통과했습니다. 업로드 크기는 627.7KB로, 이전 631.9KB와 거의 같습니다./health,/docs, update check 응답을 확인했습니다.main, 루트/apps/server, 빌드pnpm run build, 배포pnpm run publish입니다./apps/server/.node-version을 읽는지, 실제로 빌드되는지. 빌드 기록 API가 빈 목록이라 지난 자동 배포 기록은 확인하지 못했습니다.New Relic으로 나가는 로그 내용
src/middleware/logging.ts:18)가 쿼리 문자열을 포함한 전체 URL을 남기고 있었습니다. 쿼리에는 update check의deployment_key·기기 ID, OAuth 콜백의code·state가 들어 있습니다.c.req.path)만 남기도록 바꿨습니다. Cloudflare 로그에서도 같이 빠집니다.머지하면
service.name이 Worker 이름인 Log·Span이 들어오는지 확인하겠습니다.🤖 Generated with Claude Code
https://claude.ai/code/session_011R1F79zi2fBnwMwn9JAddQ