mirror of
https://github.com/saltbo/zpan.git
synced 2026-09-01 15:49:00 +08:00
fix(telemetry): enable GeoIP enrichment
This commit is contained in:
@@ -87,11 +87,13 @@ describe('instance telemetry', () => {
|
||||
flushAt: 1,
|
||||
flushInterval: 0,
|
||||
disableCompression: true,
|
||||
disableGeoip: false,
|
||||
})
|
||||
expect(posthogMocks.captureImmediate).toHaveBeenCalledTimes(1)
|
||||
expect(posthogMocks.captureImmediate).toHaveBeenCalledWith({
|
||||
event: INSTANCE_TELEMETRY_EVENT,
|
||||
distinctId: 'inst-1',
|
||||
disableGeoip: false,
|
||||
timestamp: new Date('2026-06-08T12:00:00.000Z'),
|
||||
properties: {
|
||||
instance_id: 'inst-1',
|
||||
|
||||
@@ -52,11 +52,13 @@ export async function reportInstanceTelemetry(params: InstanceTelemetryParams):
|
||||
flushAt: 1,
|
||||
flushInterval: 0,
|
||||
disableCompression: true,
|
||||
disableGeoip: false,
|
||||
})
|
||||
|
||||
await client.captureImmediate({
|
||||
distinctId: instanceId,
|
||||
event: INSTANCE_TELEMETRY_EVENT,
|
||||
disableGeoip: false,
|
||||
timestamp: new Date(timestamp),
|
||||
properties: buildTelemetryProperties({
|
||||
instanceId,
|
||||
|
||||
Reference in New Issue
Block a user