Skip to content

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.

@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