Skip to content

Instantly share code, notes, and snippets.

@softius
Created September 26, 2021 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save softius/edd7aacaecef64e5cd86e845d28990c2 to your computer and use it in GitHub Desktop.
Save softius/edd7aacaecef64e5cd86e845d28990c2 to your computer and use it in GitHub Desktop.
Default setup for Angular + Datadog
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