feat: add structured OTel request logs with source IP#117
Conversation
Adds OpenTelemetry SDK logs to the telemetry plugin, emitting structured log records to stdout for every HTTP request. Each log includes client.address (from x-forwarded-for/x-real-ip/remoteAddress), method, route, status code, and duration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
More reviews will be available in 57 minutes and 3 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Summary
ConsoleLogRecordExporter→ stdout)client.address(extracted fromx-forwarded-for→x-real-ip→remoteAddress), method, route, status code, and duration@opentelemetry/sdk-logs,@opentelemetry/api-logsTest plan
/,/api/health,/api/search,/sitemap.xml,/robots.txt)client.address,http.request.method,url.path,http.response.status_code,http.request.duration_msx-forwarded-for)🤖 Generated with Claude Code