Commit 550ea30
authored
fix: upgrade posthog-node to v5 to fix missing telemetry events (#28)
posthog-node v4's `captureImmediate` had a bug where the `.then()` chain
didn't return the promise from `captureStatelessImmediate`, causing the
HTTP request to be fire-and-forget. Combined with trpc-cli calling
`process.exit()` after the handler completes, telemetry events were
silently dropped before the request could finish.
This upgrades posthog-node from 4.18.0 to 5.28.2 where the bug is fixed,
and removes the deprecated `captureMode` and `persistence` options that
no longer exist in v5.1 parent ee3ff63 commit 550ea30
3 files changed
Lines changed: 14 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
120 | 127 | | |
121 | 128 | | |
122 | | - | |
123 | 129 | | |
124 | 130 | | |
125 | 131 | | |
126 | | - | |
127 | 132 | | |
128 | 133 | | |
129 | 134 | | |
130 | | - | |
| 135 | + | |
131 | 136 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
0 commit comments