designcourse
designcourse copied to clipboard
Question: initialize version after the first init
Hi guys, here's a question I can't find my way around.
Let's say I initialize the datadog rum agent as soon as possible in my index.html, and at the time of initialization I don't have my application version number, which I fetch via REST call later.
Is there a way to add this version later on? after the agent was already initialized?
Hello @michaelrodov,
Currently, there is no way to change the application number after the init.
However, we should soon release an API allowing you to provide service and version when starting a view:
datadogRum.startView({ service: 'foo', version: '1.0.0' })
Would this address your need?
Thank you, Currently, if I provide the version in the init, its automatically applied to all "views" and everything else. Does it mean i'll need to manually send views if I want to add "version" later than "init"?
Yes, exactly.
yea, so that would be an overkill. I would just like to update the version later on. once.
Hello @michaelrodov . What about initializing the RUM SDK as soon as you have retrieved the version
?