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

Remove logging for health check #5481

Merged
merged 8 commits into from May 15, 2024
Merged

Conversation

Cliftonz
Copy link
Contributor

@Cliftonz Cliftonz commented May 1, 2024

This pull request is aimed at removing logging from our health-check endpoint.

This decision comes in light of our continuous efforts towards cost optimization and efficient resource utilization.
The health-check endpoint is frequently hit to ensure the system's healthiness, whether it's by internal services, load-balancers, or monitoring systems. Each of these hits generates a log entry, which, over time, amounts to a significant volume of logs. This volume leads to increased storage needs and consequently higher costs associated with log storage and management.

While these logs do provide information, they offer little to no actionable value since health-checks usually don't carry business-critical data. The routine nature of these requests and the rare probability of error occurrence make the logs from health-check endpoints low in value yet high in cost. Hence, by removing logging from the health-check endpoint, we are aiming to:

  • Reduce the costs associated with log storage and management
  • Make our logging more efficient by concentrating only on value-adding logs
  • Lessen the noise in our logging, making it easier to focus on more critical and actionable logs

…m logging

This commit updates the nestjs-pino package from version 3.4.0 to 4.0.0 and updates related packages accordingly. Path exclusions in logging have also been introduced, starting with the '/ignore-me-path'. Subsequent changes are made in the config framework to reflect these updates and exclusions.
@Cliftonz Cliftonz requested review from LetItRock, a team and denis-kralj-novu and removed request for a team May 1, 2024 21:30
Copy link

linear bot commented May 1, 2024

Copy link

netlify bot commented May 1, 2024

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit 4357557
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/664504763d86c4000853698a
😎 Deploy Preview https://deploy-preview-5481--dev-web-novu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented May 1, 2024

Deploy Preview for novu-design ready!

Name Link
🔨 Latest commit 4357557
🔍 Latest deploy log https://app.netlify.com/sites/novu-design/deploys/66450476a502ab00082c6e30
😎 Deploy Preview https://deploy-preview-5481--novu-design.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

The current commit modifies the logging configuration exclusion path. It replaces '/ignore-me-path' with '*/health-check'. Now, GET requests to '*/health-check' will be excluded from logging.
Copy link
Contributor

@LetItRock LetItRock left a comment

Choose a reason for hiding this comment

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

looks good! 🙌

The dependencies in the pnpm-lock.yaml file were updated, some lines were removed while others were added. The 'overrides' packages and the 'importers' versions, among others, were notably updated. Some new eslint plugins were also added to the codebase.
@Cliftonz Cliftonz merged commit 0d0b5bc into next May 15, 2024
26 checks passed
@Cliftonz Cliftonz deleted the inf-337-remove-health-check-logging branch May 15, 2024 20:10
scopsy added a commit that referenced this pull request May 16, 2024
SokratisVidros added a commit that referenced this pull request May 16, 2024
github-actions bot pushed a commit that referenced this pull request May 16, 2024
* Update nestjs-pino and related packages and exclude certain paths from logging

This commit updates the nestjs-pino package from version 3.4.0 to 4.0.0 and updates related packages accordingly. Path exclusions in logging have also been introduced, starting with the '/ignore-me-path'. Subsequent changes are made in the config framework to reflect these updates and exclusions.

* Update exclusion path in logging configuration

The current commit modifies the logging configuration exclusion path. It replaces '/ignore-me-path' with '*/health-check'. Now, GET requests to '*/health-check' will be excluded from logging.

* Update dependencies and restructure pnpm-lock.yaml

The dependencies in the pnpm-lock.yaml file were updated, some lines were removed while others were added. The 'overrides' packages and the 'importers' versions, among others, were notably updated. Some new eslint plugins were also added to the codebase.

* Remove pnpm-lock.yaml file

* Add pnpm-lock.yaml file
github-actions bot pushed a commit that referenced this pull request May 16, 2024
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.

None yet

4 participants