Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import Datacenter #982

Closed
strowk opened this issue Aug 5, 2021 · 3 comments
Closed

Cannot import Datacenter #982

strowk opened this issue Aug 5, 2021 · 3 comments

Comments

@strowk
Copy link

strowk commented Aug 5, 2021

I am trying to use datadog RUM like this:

import { Datacenter, datadogRum } from '@datadog/browser-rum'
, but it does not work. Cannot import Datacenter. I found where this was added:

#436

, but there is no information in changelog about removal. Is it moved somewhere? Where do I take the url now?

@BenoitZugmeyer
Copy link
Member

We removed it as part of the RUM v3 release. The datacenter option has been removed as mentioned in the changelog. You should now use the site option (ex: site: "datadoghq.com")

@strowk
Copy link
Author

strowk commented Aug 5, 2021

Ah, I did not realize that Datadog enum is documented as 'option'. Maybe could be more clearly named enum, since this is how it was named when it was added in earlier entry export Datacenter enum

@BenoitZugmeyer
Copy link
Member

The Datacenter enum is not documented as 'option'. What we call "datacenter option" is the init option passed as DD_RUM.init:

DD_RUM.init({
  // ...
  datacenter: Datacenter.US
})

The sole purpose of the Datacenter enum was to be used with this option. This is why the enum has been removed as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants