Skip to content

Commit

Permalink
Datadog setup change (passportxyz#2359)
Browse files Browse the repository at this point in the history
* feat(app): updating datadog config

* feat(app): update also sample env file + make sure all DATADOG_* values default to the empty string
  • Loading branch information
nutrina authored Mar 29, 2024
1 parent e53440e commit e42d0bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/.env-example.env
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ NEXT_PUBLIC_CERAMIC_CLIENT_URL=https://ceramic-clay.3boxlabs.com
NEXT_PUBLIC_DATADOG_APPLICATION_ID=some-uid-id
NEXT_PUBLIC_DATADOG_CLIENT_TOKEN=somepubclienttoken
NEXT_PUBLIC_DATADOG_ENV=someenvname
NEXT_PUBLIC_DATADOG_SITE=us3.datadoghq.com
NEXT_PUBLIC_DATADOG_SERVICE=passport

NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID=my_gtm_id

Expand Down
4 changes: 2 additions & 2 deletions app/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import { isServerOnMaintenance } from "../utils/helpers";
datadogRum.init({
applicationId: process.env.NEXT_PUBLIC_DATADOG_APPLICATION_ID || "",
clientToken: process.env.NEXT_PUBLIC_DATADOG_CLIENT_TOKEN || "",
site: "datadoghq.eu",
service: "passport-frontend",
site: process.env.NEXT_PUBLIC_DATADOG_SITE || "",
service: process.env.NEXT_PUBLIC_DATADOG_SERVICE || "",
env: process.env.NEXT_PUBLIC_DATADOG_ENV || "",
// Specify a version number to identify the deployed version of your application in Datadog
// version: '1.0.0',
Expand Down

0 comments on commit e42d0bb

Please sign in to comment.