DataDog/browser-sdk

๐Ÿ™ How to enable version on datadog-rum?

Closed this issue ยท 0 comments

Hi guys. I'm not sure how to enable my version on datadog-rum

my init option is

datadogRum.init({
  // ...
  // Specify a version number to identify the deployed version of your application in Datadog
  version: `1.0.0`,
 // ...
})

and I simply run my code on local, and I see the code does excute the datadogRum.init, but the version on the dashboard is still N/A

Image

must I run this code on my prod environment or under a specific origin so the version will effect?

can anyone help me? thanks!

And how does datadogRum know the environment?