posthog-js icon indicating copy to clipboard operation
posthog-js copied to clipboard

Super properties for posthog-node

Open ordehi opened this issue 4 weeks ago • 1 comments

Is your feature request related to a problem?

Hi, I'm trying to set super properties on posthog-node with:

getPostHogServer().register({
finalSearchSpec: JSON.stringify(finalSearchSpec),
})

However, I can't see the properties in the captured exceptions.

Describe the solution you'd like

Support super properties in Node

Describe alternatives you've considered

  • Setting the properties each time
  • Storing them somewhere and patching the capture call to always pull from that store.

Related sub-libraries

  • [ ] All of them
  • [ ] posthog-js (web)
  • [ ] posthog-js-lite (web lite)
  • [x] posthog-node
  • [ ] posthog-react-native
  • [ ] @posthog/react
  • [ ] @posthog/ai
  • [ ] @posthog/nextjs-config
  • [ ] @posthog/nuxt
  • [ ] @posthog/rollup-plugin
  • [ ] @posthog/webpack-plugin

Additional context

Thank you for your feature request – we love each and every one!

ordehi avatar Dec 10 '25 16:12 ordehi

Hey @ordehi , what I was thinking for the feature is that we could the register method we already have that exists on the PostHog instance from the PostHogCoreStateless stores the properties but prepareEventMessage in posthog-core-stateless.ts file does not retrieve these registered properties. We could edit the PostHogCoreStateless to store properites. Whats your take ?

harshit078 avatar Dec 11 '25 09:12 harshit078