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

When DD_AGENT_HOST is set to empty string, no data is sent, and there's no error #260

Open
jakub-g opened this issue Oct 26, 2023 · 0 comments

Comments

@jakub-g
Copy link

jakub-g commented Oct 26, 2023

We've had an issue where after a backward incompatible change in GitLab 16.0 in how it populates variables, DD_AGENT_HOST variable suddenly became an empty string, and all places where hot-shots is used to send metrics from CI stopped sending metrics, although there were no errors in logs, and it took a while to understand why things have broken. Because by reading logs, everything looked "normal".

I managed to figure it out by reading this comment:

#197 (comment)

and logging the value of DD_AGENT_HOST in CI and seeing it's empty.

Relevant piece of code:

this.host = options.host || process.env.DD_AGENT_HOST;

So it would be good to improve at least this particular aspect, but also in general the debugging is not always obvious, see #257

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

1 participant