Commit Graph

17 Commits

Author SHA1 Message Date
Sebastian Poxhofer c41b46bac3 feat(logging): do not use dynamic fields in log messages with severity WARN or higher (#44560)
* ci(linter): add renovate/logger-static-message rule

Adds a custom oxlint rule that enforces a static msg component for
logger.warn/error/fatal calls (including logger.once variants) so the
messages can be grouped in metrics and error catching services, per
docs/development/best-practices.md. It also flags metadata properties
named 'error' that hold error-ish values, because the bunyan serializer
only handles the 'err' key.

The rule is enabled as an error for lib/ production code and disabled
for spec files. All 33 pre-existing violations are fixed by moving
interpolated values into the metadata object, making messages static,
and renaming 'error' metadata keys to 'err'. Affected log-message
assertions in co-located specs are updated accordingly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci: ignore validator output

* fixup new merged in log messages

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 06:53:37 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
RahulGautamSingh 76f911041a refactor: use named exports (#39196)
* use named exports

* fix test

* add missing imnport

* fix prettier
2025-11-10 12:00:35 +00:00
Michael Kriese 3211d56e21 refactor(zod): rename schema to match our best practices guide (#37499) 2025-08-14 10:35:03 +00:00
Borja Domínguez fe360349c8 feat: add transform template log (#34821)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2025-03-16 13:34:34 +00:00
Rhys Arkins da4ee8b874 feat(jsonata): validation, caching, better logging (#31832) 2024-10-08 09:11:15 +00:00
RahulGautamSingh 1405689cf8 fix(datasource/custom): better logging for jsonata errors (#31520) 2024-09-25 19:24:54 +00:00
Sebastian Poxhofer a13ab2cffa chore(datasource/custom): log data before jsonata processing (#30241) 2024-07-18 21:00:59 +00:00
Alex Cortelyou e3675f104d feat(datasource/custom): Support digest in custom datasource (#28760)
Co-authored-by: Fabian Stehle <fabian.stehle-extern@moia.io>
Co-authored-by: Fabian Stehle <fabi@fstehle.de>
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-05-01 07:41:05 +00:00
nSimon (Nicolas) 540ad4fa72 fix(datasource/custom): fix local registry path (#26142) 2023-12-05 17:25:45 +00:00
Sebastian Poxhofer 95ad0d02dc refactor(datasource/custom): use class based fetcher to simplify code (#25958) 2023-11-25 06:37:05 +00:00
nSimon (Nicolas) f7b74c3f8b feat(datasource/custom): add ability for local registry (file://) (#25734) 2023-11-24 06:05:46 +00:00
nSimon (Nicolas) 53401eb36f feat(datasource/custom): allow to fetch from YAML data endpoint (#25695) 2023-11-13 11:01:56 +00:00
Sebastian Poxhofer d10dcff495 refactor(custom/datasource): prepare for additional format types (#25640) 2023-11-08 06:05:22 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Asifur Rahman Arnab 37862b6c08 feat: add plain format type for customDatasources (#23563)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2023-08-03 14:20:36 +00:00
Sebastian Poxhofer f26d21fcc3 feat(datasource): implement custom datasource (#23147) 2023-07-10 18:22:35 +00:00