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

Improve logging #80

Merged
merged 1 commit into from
Oct 13, 2024
Merged

Improve logging #80

merged 1 commit into from
Oct 13, 2024

Conversation

isker
Copy link
Contributor

@isker isker commented Oct 13, 2024

  • Add debug logging that logs the full ECS responses, which can be used with JSON log formatting to enable developing against the actual behavior of the ECS APIs.
  • Error when the ECS APIs return a non-2xx response. They are not specified to ever do so, but surely we should not be trying to deserialize response bodies to the usual JSON objects in such situations.

ecscollector/collector.go Outdated Show resolved Hide resolved
- Add debug logging that logs the full ECS responses, which can be used
  with JSON log formatting to enable developing against the actual
  behavior of the ECS APIs.
- Error when the ECS APIs return a non-2xx response. They are not
  specified to ever do so, but surely we should not be trying to
  deserialize response bodies to the usual JSON objects in such
  situations.

Signed-off-by: Ian Kerins <[email protected]>
Copy link
Contributor

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

Thanks!

@SuperQ SuperQ merged commit 593ea5f into prometheus-community:main Oct 13, 2024
4 checks passed
@isker isker deleted the improve-logging branch October 17, 2024 11: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.

2 participants