Created
September 26, 2021 19:28
-
-
Save softius/edd7aacaecef64e5cd86e845d28990c2 to your computer and use it in GitHub Desktop.
Default setup for Angular + Datadog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { datadogLogs as datadog } from '@datadog/browser-logs'; | |
if (environment.production) { | |
enableProdMode(); | |
datadog.init({ | |
clientToken: environment.datadog.clientToken, | |
site: environment.datadog.site, | |
service: environment.datadog.service, | |
forwardErrorsToLogs: true, | |
sampleRate: 100, | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment