flagsmith-js-client icon indicating copy to clipboard operation
flagsmith-js-client copied to clipboard

Provide explicit setter functions for Data Dog / Dynatrace

Open kyle-ssg opened this issue 2 years ago • 1 comments

In an SSR based application we cannot initialise and track RUM events on the server, this means that when the client hydrates we are not calling the corresponding dtrum and datadogrum functions, see https://github.com/Flagsmith/flagsmith-js-client/blob/main/flagsmith-core.ts#L171

We should separate the above out into functions setDtrum and setDatadogRum so they can be called when mounting the frontend in frameworks such as Next.js

kyle-ssg avatar Jul 06 '23 14:07 kyle-ssg

@kyle-ssg are there any specifics and details you can add as well as acceptance criteria, so I can address this request? For example: Is there any existing DataDog example integration that I could use to test the integration with a SSR NextJS app?

novakzaballa avatar Oct 26 '23 15:10 novakzaballa

This is no longer an issue

kyle-ssg avatar Oct 09 '24 15:10 kyle-ssg