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

fix: use DD_SITE env var instead of hardcoded value #2888

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

TBonnin
Copy link
Collaborator

@TBonnin TBonnin commented Oct 24, 2024

Describe your changes

Using the DD_SITE env var in telemetry.ts instead of hardcoded value.

Issue ticket number and link

https://linear.app/nango/issue/NAN-1957/solve-datadog-issues

Checklist before requesting a review (skip if just adding/editing APIs & templates)

  • I added tests, otherwise the reason is:
  • I added observability, otherwise the reason is:
  • I added analytics, otherwise the reason is:

Copy link

linear bot commented Oct 24, 2024

const configuration = client.createConfiguration();
configuration.setServerVariables({
site: 'us3.datadoghq.com'
site: process.env['DD_SITE']
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we enforce this value, I would just make sure it works or has a default value

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you mean by enforce?
btw it is an already existing env var that we are already using in other part of the codebase

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant be sure it's there but I forgot there was the if above 🤦🏻

@TBonnin TBonnin force-pushed the tbonnin/nan-1957/dd-site branch from c0fd48b to 32b488c Compare October 25, 2024 14:36
@TBonnin TBonnin force-pushed the tbonnin/nan-1957/dd-site branch from 32b488c to 45f0ca2 Compare October 25, 2024 14:46
@TBonnin TBonnin enabled auto-merge (squash) October 25, 2024 14:47
@TBonnin TBonnin merged commit 8d38e16 into master Oct 25, 2024
21 checks passed
@TBonnin TBonnin deleted the tbonnin/nan-1957/dd-site branch October 25, 2024 14:57
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

Successfully merging this pull request may close these issues.

3 participants