Repository navigation
chore: upgrade posthog-go to v2 - #1279
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test Impact PlanDeterministic summary of how this PR changes tests, CI runners, and coverage-risk signals. Summary
Signals
Coverage risk: neutral or increased No coverage-reduction warnings detected. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bill-ph
approved these changes
Nov 21, 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.
Problem
duckgres sends its product events (
query_*,warehouse_*) with posthog-go 1.16. posthog-go v2 sends them through PostHog's v1 capture API.Changes
github.com/posthog/posthog-go/v2v2.1.1. Only the import path changes;NewWithConfig,Enqueue(Capture),Groups.Setwith a string value, andClosework as before.klauspost/compressv1.20.3. posthog-go v2.1.1 asks only for v1.17.11, which has GO-2026-6865 (a panic on two-block frames, fixed in v1.20.2). govulncheck now reports the same findings asmain, none from this change./i/v1/analytics/eventswith the org as distinct id andorganizationgroup, as today.Trackeralready documents ("must never block"):Capturewhen that queue was full.ErrQueueFullinstead of blocking.Capturealready logs that error at debug and moves on.How did you test this code?
go build ./...,go vetandgo testforinternal/analyticsandinternal/clibootpass.NewPostHogTrackerandCaptureagainst a local server. Both events reached/i/v1/analytics/events: one with distinct idorg-aand$groups{organization: org-a}, one asstandalonewith no group.🤖 Generated with Claude Code