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

chore: add some logging for 3xx and 4xx responses polling for central config #3549

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

trentm
Copy link
Member

@trentm trentm commented Aug 3, 2023

Refs: elastic/apm-nodejs-http-client#182


In #3507 the APM http-client was moved in this repo. At the time there were some remaining PRs and issues. One of them was elastic/apm-nodejs-http-client#182 by @linjunpop to add some logging for 304, 403, and 404 responses from APM server when polling for central config. This was adapted to this PR. Changes from the original PR:

  • I've reduced the log levels from debug to trace -- because 'trace' is the more typical "show the inner workings" log level being used in the http-client -- and warn to debug -- because this part of the spec says:

If the server responds with 4xx, agents are not required to log the response, but may choose to log it at debug level.

  • I've tweaked the log messages.

@trentm trentm requested a review from david-luna August 3, 2023 20:11
@trentm trentm self-assigned this Aug 3, 2023
@github-actions github-actions bot added the agent-nodejs Make available for APM Agents project planning. label Aug 3, 2023
@david-luna david-luna merged commit 0dbd6c3 into main Aug 4, 2023
35 checks passed
@david-luna david-luna deleted the trentm/central-config-error-logging branch August 4, 2023 07:57
fpm-peter pushed a commit to fpm-git/apm-agent-nodejs that referenced this pull request Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-nodejs Make available for APM Agents project planning.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants