fix: dont burry analytics properties (#3254)

* fix: dont burry analytics properties

* chore: lint
This commit is contained in:
Gabe Ruttner
2026-03-12 13:00:35 -07:00
committed by GitHub
parent 6419ad33dc
commit 732d1a87a6
+4 -8
View File
@@ -166,9 +166,7 @@ func (p *PosthogAnalytics) Start() {
func (p *PosthogAnalytics) Identify(userId uuid.UUID, properties analytics.Properties) {
err := (*p.client).Enqueue(posthog.Identify{
DistinctId: analytics.DistinctID(&userId, nil, nil),
Properties: posthog.Properties{
"$set": properties,
},
Properties: posthog.Properties(properties),
})
if err != nil {
@@ -178,11 +176,9 @@ func (p *PosthogAnalytics) Identify(userId uuid.UUID, properties analytics.Prope
func (p *PosthogAnalytics) Tenant(tenantId uuid.UUID, data analytics.Properties) {
err := (*p.client).Enqueue(posthog.GroupIdentify{
Type: "tenant",
Key: tenantId.String(),
Properties: posthog.Properties{
"$set": data,
},
Type: "tenant",
Key: tenantId.String(),
Properties: posthog.Properties(data),
})
if err != nil {
p.l.Error().Err(err).Str("tenant_id", tenantId.String()).Msg("error enqueuing posthog group identify")