Skip to content

[8.19] [Error logs] Serialize meta.error if it is an instance of Error in JSON layout (#244364)#244659

Merged
kibanamachine merged 1 commit intoelastic:8.19from
kibanamachine:backport/8.19/pr-244364
Nov 30, 2025
Merged

[8.19] [Error logs] Serialize meta.error if it is an instance of Error in JSON layout (#244364)#244659
kibanamachine merged 1 commit intoelastic:8.19from
kibanamachine:backport/8.19/pr-244364

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

…ON layout (elastic#244364)

## Summary

In this PR, we serialize meta.error to only keep the relevant attributes
(message, name, stack) if it is an instance of Error.

## Release note

Fixes serialization of meta.error in JSON layouts: if the error is an
Error instance, only message, name, and stack will be included —
additional fields will no longer pollute the logs.

---------

Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
(cherry picked from commit 0a29908)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Nov 28, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) November 28, 2025 14:59
@elasticmachine
Copy link
Contributor

elasticmachine commented Nov 28, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
kbnUiSharedDeps-srcJs 3.7MB 3.7MB -129.0B

History

cc @maryam-saeidi

@kibanamachine kibanamachine merged commit 66c2e6f into elastic:8.19 Nov 30, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

3 participants