Skip to content

fix: correct PostHog OTel endpoint URL and add Next.js server-side logging#122

Merged
willwearing merged 1 commit into
mainfrom
fix/posthog-otel-logs
Apr 12, 2026
Merged

fix: correct PostHog OTel endpoint URL and add Next.js server-side logging#122
willwearing merged 1 commit into
mainfrom
fix/posthog-otel-logs

Conversation

@willwearing
Copy link
Copy Markdown
Owner

Summary

  • Backend: Fix OTel log exporter endpoint from /v1/logs to /i/v1/logs (PostHog's ingestion proxy path)
  • Backend: Switch from SimpleLogRecordProcessor to BatchLogRecordProcessor for better performance and reliability
  • Frontend: Add src/instrumentation.ts for Next.js server-side OTel log export to PostHog (uses register() hook, Node.js runtime only)

Test plan

  • Backend type-check passes
  • All 613 backend tests pass
  • Frontend type-check passes
  • Lint passes

🤖 Generated with Claude Code

…gging

Backend: fix endpoint from /v1/logs to /i/v1/logs (PostHog's ingestion
proxy path) and switch SimpleLogRecordProcessor to BatchLogRecordProcessor
for better performance. Frontend: add instrumentation.ts for Next.js
server-side OTel log export to PostHog.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
graspful Ready Ready Preview, Comment Apr 12, 2026 8:36pm

@willwearing willwearing merged commit 3a6b989 into main Apr 12, 2026
5 checks passed
@willwearing willwearing deleted the fix/posthog-otel-logs branch April 12, 2026 20:47
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