kibana/packages/shared-ux/error_boundary
Vadim Kibana 7490c32373
Error boundary telemetry stacktraces 2 (#175219)
## Summary

Closes https://github.com/elastic/kibana-team/issues/733

This change adds two new fields to [Error Boundary event-based
telemetry](https://github.com/elastic/kibana/pull/169895) logging:
`error_stack` and `component_stack`.

- `error_stack` is a stacktrace of the error message that was caught, if
any, otherwise an empty string.
- `component_stack` is the list React components in the React component
tree where error propagated until it was caught by the Error Boundary.


### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios


### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-01-26 12:45:52 +01:00
..
lib Error boundary telemetry stacktraces 2 (#175219) 2024-01-26 12:45:52 +01:00
mocks Integrate Event-Based Telemetry in KibanaErrorBoundary (#169895) 2023-11-03 12:55:00 -07:00
src Error boundary telemetry stacktraces 2 (#175219) 2024-01-26 12:45:52 +01:00
BUILD.bazel KibanaErrorBoundary initial implementation (#168754) 2023-10-23 07:47:30 -07:00
index.ts Integrate Event-Based Telemetry in KibanaErrorBoundary (#169895) 2023-11-03 12:55:00 -07:00
jest.config.js KibanaErrorBoundary initial implementation (#168754) 2023-10-23 07:47:30 -07:00
kibana.jsonc KibanaErrorBoundary initial implementation (#168754) 2023-10-23 07:47:30 -07:00
package.json KibanaErrorBoundary initial implementation (#168754) 2023-10-23 07:47:30 -07:00
README.mdx KibanaErrorBoundary initial implementation (#168754) 2023-10-23 07:47:30 -07:00
tsconfig.json Integrate Event-Based Telemetry in KibanaErrorBoundary (#169895) 2023-11-03 12:55:00 -07:00
types.ts Integrate Event-Based Telemetry in KibanaErrorBoundary (#169895) 2023-11-03 12:55:00 -07:00

---
id: sharedUX/KibanaErrorBoundary
slug: /shared-ux/error_boundary/kibana_error_boundary
title: Kibana Error Boundary
description: Container to catch errors thrown by child component
tags: ['shared-ux', 'component', 'error', 'error_boundary']
date: 2023-10-03
---

## Description

## API

## EUI Promotion Status

This component is specialized for error messages internal to Kibana and is not intended for promotion to EUI.