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: warn for missing units in config and for errorMessagesMaxLength usage #3553

Merged
merged 14 commits into from
Aug 4, 2023

Conversation

david-luna
Copy link
Member

@david-luna david-luna commented Aug 4, 2023

Spit out a warning whenever a size/bytes config option is given without its units. The log shows the value provided and the name of the option.

This PR also adds a warning log if the deprecated errorMessagesMaxLength is used.

Closes #2121
Closes #2314

Checklist

  • Implement code
  • Add tests
  • Update TypeScript typings
  • Update documentation
  • Add CHANGELOG.asciidoc entry
  • Commit message follows commit guidelines

@david-luna david-luna requested a review from trentm August 4, 2023 09:09
@github-actions github-actions bot added the agent-nodejs Make available for APM Agents project planning. label Aug 4, 2023
@david-luna david-luna changed the title chore: warn for missing size units in config chore: warn for missing units in config and for errorMessagesMaxLength usage Aug 4, 2023
@david-luna david-luna changed the title chore: warn for missing units in config and for errorMessagesMaxLength usage chore: warn for missing units in config and for errorMessagesMaxLength usage Aug 4, 2023
Copy link
Member

@trentm trentm left a comment

Choose a reason for hiding this comment

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

Just some suggestions for the docs.

docs/upgrade-to-v4.asciidoc Outdated Show resolved Hide resolved
docs/upgrade-to-v4.asciidoc Outdated Show resolved Hide resolved
docs/upgrade-to-v4.asciidoc Outdated Show resolved Hide resolved
docs/upgrade-to-v4.asciidoc Outdated Show resolved Hide resolved
docs/upgrade-to-v4.asciidoc Outdated Show resolved Hide resolved
docs/upgrade-to-v4.asciidoc Outdated Show resolved Hide resolved
lib/config/normalizers.js Outdated Show resolved Hide resolved
@trentm trentm merged commit be4e6e5 into dev/4.x Aug 4, 2023
@trentm trentm deleted the dluna/2121-warn-missing-size-units-in-config branch August 4, 2023 19:49
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