Skip to content

Commit 195a951

Browse files
692 Adds changeset
1 parent 8d223cc commit 195a951

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/eleven-islands-kiss.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@orchestrator-ui/orchestrator-ui-components': major
3+
---
4+
5+
692 Adds WfoErrorMonitoringProvider for tracing purposes. It exposes 2 methods via the useWfoErrorMonitoring hook. The WfoErrorMonitoringProvider needs to be added to the _app.tsx and, optionally, the errorMonitoringHandler needs to be implemented.

packages/orchestrator-ui-components/src/contexts/WfoErrorMonitoringProvider.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export type WfoErrorMonitoringProviderProps = {
1919
children: ReactNode;
2020
};
2121

22+
/**
23+
*
24+
* @param errorMonitoringHandler for implementing the error monitoring. When not provided, all report calls are no-ops.
25+
* @param children
26+
*/
2227
export const WfoErrorMonitoringProvider: FC<
2328
WfoErrorMonitoringProviderProps
2429
> = ({ errorMonitoringHandler, children }) => {

0 commit comments

Comments
 (0)