Skip to content

feat: emit $is_server property on captured events#163

Merged
turnipdabeets merged 6 commits into
mainfrom
feat/add-is-server-property
Jun 3, 2026
Merged

feat: emit $is_server property on captured events#163
turnipdabeets merged 6 commits into
mainfrom
feat/add-is-server-property

Conversation

@turnipdabeets

Copy link
Copy Markdown
Contributor

Adds $is_server: true to every event captured by this SDK so PostHog ingestion can identify server-side events.

@turnipdabeets turnipdabeets requested a review from a team as a code owner June 2, 2026 19:36
@greptile-apps

greptile-apps Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "feat: emit $is_server property on captur..." | Re-trigger Greptile

Comment thread lib/posthog/client.rb
Comment on lines +343 to 344
attrs[:is_server] = @is_server
enqueue(FieldParser.parse_for_group_identify(attrs))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FieldParser.parse_for_group_identify writes attrs to an inner $group_set property instead of a top level property, so this won't work

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worth testing the shape of these enqueued events to catch this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@turnipdabeets turnipdabeets requested a review from dustinbyrne June 3, 2026 17:52
{
event: '$groupidentify',
properties: {
properties: (common[:properties] || {}).merge(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice bug fix

@turnipdabeets turnipdabeets merged commit fccb4af into main Jun 3, 2026
16 checks passed
@turnipdabeets turnipdabeets deleted the feat/add-is-server-property branch June 3, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants