fix: @seek/logger ^11.0.0 #158
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^10.0.0->^11.0.0Release Notes
seek-oss/logger (@seek/logger)
v11.0.0Compare Source
This much-delayed release introduces an opt-in
eeeohintegration for SEEK's proprietary logging solution and Datadog observability practices. It supports standardDD_environment variables and advanced log tiering behaviour.Our new Datadog logging guidance on Backstage walks through recommendations to reduce gotchas and rework down the track.
While you don't need to upgrade overnight, we have tested the new version on multiple production components for several weeks, and more feedback will improve the Datadog experience for all 🙏
Major Changes
Restrict select log attributes (#184)
When specifying attributes in a child logger or log method:
The following keys are no longer recommended as they should be set upfront in
createLogger:ddsourceeeeohddtagseeeoheeeeoheeeoheeoheeeohenveeeoh: { use: 'environment' }serviceeeeoh: { use: 'environment' }versioneeeoh: { use: 'environment' }The following keys now have specific TypeScript types associated with them:
durationnumbereeeohobjectlatencynumberx-request-idstringThis change aims to drive alignment with eeeoh & Datadog conventions for an improved out-of-box experience. Reach out if these new type definitions pose problems for your application.
We also recommend reviewing our guidance on logger types and reducing coupling to the
pino.Loggertype for forward compatibility.Apply
errserializer toerrorkey (#184)This makes it easier to move between
logger({ err }, 'msg')andlogger({ error }, 'msg'). If your application was already sending theerrorkey, you may observe slightly different output. Seepino-std-serializersfor more information about the serializer.The
errorkey provides a better out-of-box experience in Datadog as a standard attribute. SEEK applications do not need to rewrite existingerrs at this time;@seek/loggerwill automatically re-maperrtoerrorwhen you opt in to the eeeoh integration, and we may investigate a codemod or an equivalent bulk migration option in the future.Restrict manual
base.eeeohconfiguration (#184)If you have an application that manually configures eeeoh routing like so:
@seek/loggerwill now treat this as a type error to encourage adoption and stronger typing of our built-in eeeoh integration. Take particular note of theuse: 'environment'prerequisites before proceeding.The built-in integration does not support configuring a Splunk destination; you can append a Splunk destination via your LogCentral strategy.
Minor Changes
createDestination: Remove
ddsource,eeeoh,envandservicewithmock: true(#218)These
mockdefaults can be overwritten; see our documentation for more information.Export
createLoggeras a named export (#189)This improves forward compatibility with TypeScript & ESM. While the named export is recommended, there is no immediate need to migrate existing codebases, and we've left the default export in place.
Migration:
Add eeeoh integration (#184)
See the documentation for more information.
Configuration
📅 Schedule: Branch creation - "after 3:00 am and before 6:00 am every weekday" in timezone Australia/Melbourne, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.