mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-05-04 00:20:08 -05:00
fix: dont burry analytics properties (#3254)
* fix: dont burry analytics properties * chore: lint
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user