Update dependency @elastic/ecs-winston-format to v1.5.3 #34
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:
1.3.1
->1.5.3
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
elastic/ecs-logging-nodejs (@elastic/ecs-winston-format)
v1.5.3
Compare Source
unhandledRejection
events (when configured to handle them) as ofwinston@3.12.0. In that version the log record changed slightly to
set
record.rejection
rather thanrecord.exception
.v1.5.2
Compare Source
level
property from theinfo
object, because https://github.com/winstonjs/logform#info-objects says"Every
info
must have at least thelevel
andmessage
properties".https://github.com/elastic/ecs-logging-nodejs/issues/173/173)
v1.5.0
Compare Source
Add
ecsFields
andecsStringify
exports that are winston formattersthat separate the gathering of ECS fields (
ecsFields
) and thestringification of a log record to an ecs-logging JSON object
(
ecsStringify
). This allows for better composability usingwinston.format.combine
.The preferred way to import now changes to:
The old way will be deprecated and removed in the future:
Typical usage of
ecsFormat
is unchanged:However, one can now use the separated formatters as follows:
One good use case is for redaction of sensitive fields in the log record
ashttps://github.com/elastic/ecs-logging-nodejs/issues/57s/57. See a
complete example at examples/redact-fields.js.
Fix/improve serialization of error details to
error.*
fields for thevarious ways a Winston logger handles
Error
instances.stack
field for an error passed this way.logform.errors(...)
format is configured, Winston will serializeanErr
passed this way.err
meta field is specific to@elastic/ecs-winston-format
and is discouraged. If possible, use style 1.It will remain for now for backward compatibility.
With this change, all three cases above will result in
anErr
details beingserialized to ECS
error.*
fields,as well as
error.cause
and other properties on the error instance. Forms 2 and 3 are enabled via
the
convertErr: true
configuration option.See examples/basic.js.
In addition, if your Winston logger is configured to handle
uncaughtException
and/or
unhandledRejection
(https://github.com/winstonjs/winston#exceptions),then the Error instance included in this log record will be serialized to
error.*
fields. See test/uncaught-exception.jsand test/unhandled-rejection.js for examples.
https://github.com/elastic/ecs-logging-nodejs/issues/128/128)
Switch to
safe-stable-stringify
for JSON serialization. This libraryprotects against circular references and biginthttps://github.com/elastic/ecs-logging-nodejs/pull/155pull/155)
Explicitly depend on
triple-beam
(>=1.1.0
whenMESSAGE
was added).Before this change, this package was assuming that it would be installed by
the user. This worked for npm's flat install --
npm install winston
willinstall a
node_modules/triple-beam/...
-- but not for Yarn 2's PnP installmechanishttps://github.com/elastic/ecs-logging-nodejs/issues/108sues/108)
Set
http.request.id
field (see ecs-helpers CHANGELOG).Add support for default import in TypeScript, with or without the
esModuleInterop
setting:However, note that using named imports is now preferred.
v1.4.0
Add
service.version
,service.environment
, andservice.node.name
logcorrelation fields, automatically inferred from an active APM agent. As
well, the following
ecsFormat
configuration options have been added foroverriding these and existing correlation fields:
serviceName
,serviceVersion
,serviceEnvironment
,serviceNodeName
.https://github.com/elastic/apm-agent-nodejs/issues/319531https://github.com/elastic/ecs-logging-nodejs/issues/121suhttps://github.com/elastic/ecs-logging-nodejs/issues/87js/issues/87)
Change to adding dotted field names (
"ecs.version": "1.6.0"
), rather thannamespaced fields (
"ecs": {"version": "1.6.0"}
) for most fields. This issupported by the ecs-logging spec, and arguably preferred in the ECS logging
docs. It is also what the ecs-logging-java libraries do. The resulting output
is slightly shorter, and accidental collisions with user fields is less
likely.
Stop adding ".log" suffix to
event.dataset
field.(#95)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.