Hi, we are using the PostHog destination and we ar...
# support
w
Hi, we are using the PostHog destination and we are having problems with the timestamp field. According to the guide https://www.rudderstack.com/docs/destinations/streaming-destinations/posthog/posthog-cloud-mode/#property-mappings we should pass a value as
originalTimestamp
,
timestamp
, and that value should be mapped to
$time
and
$timestamp
but that is not happening. The events on PostHog have the time of arrival in those fields. Do you know what could be the reason? Thanks!.
f
Can you share some payloads which you are sending to rudderstack?
w
This is what we send
This is the PostHog destination payload
f
We are prioritizing
originalTimestamp
over timestamp. You are not sending
originalTimestamp
but it is automatically getting updated with the time when the event arrives to rudderstack. So it would be better if you send
originalTimestamp
apart from
timestamp
. You can use transformations to achieve that.
w
The
originalTimestamp
param is not available in Ruby. https://github.com/rudderlabs/rudder-sdk-ruby-sync/blob/master/lib/rudder_analytics_sync/client.rb. If I send it, It does not have any effect. Is there any other solution without using transformations? We are using the open-source version.
f
Yes you can use transformations to update the event payload with
originalTimestamp
f
Hi Sudip, jumping in here - according to here , transformations are very limited in the open source version, and would tie us to the hosted control plane. So for us it would be more a workaround to use them. Is this feature intentionally left out in the Ruby library, or could it be added in the future?
f
@flaky-ability-44647 I checked with my team. This feature is intentionally left out in the Ruby library.
f
Thanks for checking, @fierce-crayon-64520. To us this seems like quite a limitation of the Ruby library, because a main advantage of a backend implementation is batching and async upload, and the timing will break in that case. Short term we can solve with a transformation, thanks for the hint. Medium term, do you think a PR to the Ruby SDK code has a chance? Should we look into that?
c
Hey @flaky-ability-44647, at the moment, I’ll suggest you to continue with the transformation. We are already planning to include those
originalTimestamp
key in all of our server side SDKs, including ruby-sync, but due to other priority items, we are unable to pick this task currently.
👍 1
🙏 1