@dxos/plugin-observability 0.8.4-main.406dc2a → 0.8.4-main.4a85c3132b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/HelpContainer-FS6R75L5.mjs +74 -0
- package/dist/lib/browser/HelpContainer-FS6R75L5.mjs.map +7 -0
- package/dist/lib/browser/ObservabilitySettings-M63CU4QW.mjs +12 -0
- package/dist/lib/browser/ObservabilitySettings-M63CU4QW.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-7PBOGFFG.mjs +45 -0
- package/dist/lib/browser/app-graph-builder-7PBOGFFG.mjs.map +7 -0
- package/dist/lib/browser/chunk-3XZDP7JS.mjs +16 -0
- package/dist/lib/browser/chunk-3XZDP7JS.mjs.map +7 -0
- package/dist/lib/browser/chunk-BURIOTMF.mjs +41 -0
- package/dist/lib/browser/chunk-BURIOTMF.mjs.map +7 -0
- package/dist/lib/browser/chunk-TB4V5AI3.mjs +138 -0
- package/dist/lib/browser/chunk-TB4V5AI3.mjs.map +7 -0
- package/dist/lib/browser/chunk-WYDANA3A.mjs +32 -0
- package/dist/lib/browser/chunk-WYDANA3A.mjs.map +7 -0
- package/dist/lib/browser/chunk-X2MDAD6K.mjs +10 -0
- package/dist/lib/browser/chunk-X2MDAD6K.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +24 -0
- package/dist/lib/browser/cli/index.mjs.map +7 -0
- package/dist/lib/browser/client-ready-QVJQMW75.mjs +102 -0
- package/dist/lib/browser/client-ready-QVJQMW75.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +74 -109
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-MDAGP5UW.mjs +78 -0
- package/dist/lib/browser/operation-resolver-MDAGP5UW.mjs.map +7 -0
- package/dist/lib/browser/react-surface-R2TPU5TH.mjs +39 -0
- package/dist/lib/browser/react-surface-R2TPU5TH.mjs.map +7 -0
- package/dist/lib/browser/settings-K3HZEWSK.mjs +37 -0
- package/dist/lib/browser/settings-K3HZEWSK.mjs.map +7 -0
- package/dist/lib/browser/state-YS5COCDC.mjs +30 -0
- package/dist/lib/browser/state-YS5COCDC.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +12 -4
- package/dist/lib/node-esm/HelpContainer-XOCD23EA.mjs +75 -0
- package/dist/lib/node-esm/HelpContainer-XOCD23EA.mjs.map +7 -0
- package/dist/lib/node-esm/ObservabilitySettings-TONQ3AAW.mjs +13 -0
- package/dist/lib/node-esm/ObservabilitySettings-TONQ3AAW.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-D77CGMCQ.mjs +46 -0
- package/dist/lib/node-esm/app-graph-builder-D77CGMCQ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-2ECMMPZY.mjs +18 -0
- package/dist/lib/node-esm/chunk-2ECMMPZY.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-BGK3JUVL.mjs +42 -0
- package/dist/lib/node-esm/chunk-BGK3JUVL.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-IDJN2AON.mjs +33 -0
- package/dist/lib/node-esm/chunk-IDJN2AON.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-NH4PVNUO.mjs +139 -0
- package/dist/lib/node-esm/chunk-NH4PVNUO.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-WYLPEENT.mjs +12 -0
- package/dist/lib/node-esm/chunk-WYLPEENT.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +25 -0
- package/dist/lib/node-esm/cli/index.mjs.map +7 -0
- package/dist/lib/node-esm/client-ready-LXKSSYVT.mjs +103 -0
- package/dist/lib/node-esm/client-ready-LXKSSYVT.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +74 -109
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-MV5V25GK.mjs +79 -0
- package/dist/lib/node-esm/operation-resolver-MV5V25GK.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-XXT3YBYG.mjs +40 -0
- package/dist/lib/node-esm/react-surface-XXT3YBYG.mjs.map +7 -0
- package/dist/lib/node-esm/settings-M7JG6IRW.mjs +38 -0
- package/dist/lib/node-esm/settings-M7JG6IRW.mjs.map +7 -0
- package/dist/lib/node-esm/state-LU6EARPH.mjs +31 -0
- package/dist/lib/node-esm/state-LU6EARPH.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +12 -4
- package/dist/types/src/ObservabilityPlugin.d.ts +3 -2
- package/dist/types/src/ObservabilityPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/client-ready/client-ready.d.ts +10 -0
- package/dist/types/src/capabilities/client-ready/client-ready.d.ts.map +1 -0
- package/dist/types/src/capabilities/client-ready/index.d.ts +4 -0
- package/dist/types/src/capabilities/client-ready/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +6 -16
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +7 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/index.d.ts +7 -0
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/settings.d.ts +10 -0
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/index.d.ts +11 -0
- package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/state.d.ts +13 -0
- package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
- package/dist/types/src/cli/index.d.ts +2 -0
- package/dist/types/src/cli/index.d.ts.map +1 -0
- package/dist/types/src/cli/plugin.d.ts +3 -0
- package/dist/types/src/cli/plugin.d.ts.map +1 -0
- package/dist/types/src/components/FeedbackForm.d.ts +3 -3
- package/dist/types/src/components/FeedbackForm.d.ts.map +1 -1
- package/dist/types/src/components/FeedbackForm.stories.d.ts +35 -0
- package/dist/types/src/components/FeedbackForm.stories.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +0 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/HelpContainer/HelpContainer.d.ts +4 -0
- package/dist/types/src/containers/HelpContainer/HelpContainer.d.ts.map +1 -0
- package/dist/types/src/containers/HelpContainer/index.d.ts +3 -0
- package/dist/types/src/containers/HelpContainer/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ObservabilitySettings}/ObservabilitySettings.d.ts +4 -2
- package/dist/types/src/containers/ObservabilitySettings/ObservabilitySettings.d.ts.map +1 -0
- package/dist/types/src/containers/ObservabilitySettings/index.d.ts +3 -0
- package/dist/types/src/containers/ObservabilitySettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +6 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +3 -2
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +27 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/events.d.ts +6 -0
- package/dist/types/src/types/events.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +57 -307
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +46 -34
- package/src/ObservabilityPlugin.ts +47 -46
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +43 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/client-ready/client-ready.ts +84 -0
- package/src/capabilities/client-ready/index.ts +9 -0
- package/src/capabilities/index.ts +6 -10
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +76 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +35 -0
- package/src/capabilities/settings/index.ts +7 -0
- package/src/capabilities/settings/settings.ts +34 -0
- package/src/capabilities/state/index.ts +7 -0
- package/src/capabilities/state/state.ts +29 -0
- package/src/cli/index.ts +5 -0
- package/src/cli/plugin.ts +28 -0
- package/src/components/FeedbackForm.stories.tsx +33 -0
- package/src/components/FeedbackForm.tsx +17 -66
- package/src/components/index.ts +0 -2
- package/src/containers/HelpContainer/HelpContainer.tsx +55 -0
- package/src/containers/HelpContainer/index.ts +7 -0
- package/src/containers/ObservabilitySettings/ObservabilitySettings.tsx +53 -0
- package/src/containers/ObservabilitySettings/index.ts +7 -0
- package/src/containers/index.ts +14 -0
- package/src/index.ts +1 -2
- package/src/meta.ts +7 -2
- package/src/translations.ts +3 -3
- package/src/types/capabilities.ts +34 -0
- package/src/types/events.ts +15 -0
- package/src/types/index.ts +2 -0
- package/src/types/schema.ts +62 -194
- package/dist/lib/browser/app-graph-builder-MBPI6TGN.mjs +0 -44
- package/dist/lib/browser/app-graph-builder-MBPI6TGN.mjs.map +0 -7
- package/dist/lib/browser/chunk-5VM6D2EF.mjs +0 -179
- package/dist/lib/browser/chunk-5VM6D2EF.mjs.map +0 -7
- package/dist/lib/browser/chunk-G754T676.mjs +0 -18
- package/dist/lib/browser/chunk-G754T676.mjs.map +0 -7
- package/dist/lib/browser/chunk-RS66U4WR.mjs +0 -191
- package/dist/lib/browser/chunk-RS66U4WR.mjs.map +0 -7
- package/dist/lib/browser/chunk-SCJ3DALL.mjs +0 -11
- package/dist/lib/browser/chunk-SCJ3DALL.mjs.map +0 -7
- package/dist/lib/browser/client-ready-IV2NFN4M.mjs +0 -102
- package/dist/lib/browser/client-ready-IV2NFN4M.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-IZTKLP6N.mjs +0 -77
- package/dist/lib/browser/intent-resolver-IZTKLP6N.mjs.map +0 -7
- package/dist/lib/browser/react-surface-N7WRUNJ2.mjs +0 -32
- package/dist/lib/browser/react-surface-N7WRUNJ2.mjs.map +0 -7
- package/dist/lib/browser/settings-JOZ5BZDO.mjs +0 -25
- package/dist/lib/browser/settings-JOZ5BZDO.mjs.map +0 -7
- package/dist/lib/browser/state-OVWHPB7K.mjs +0 -26
- package/dist/lib/browser/state-OVWHPB7K.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-LHLEY5QQ.mjs +0 -45
- package/dist/lib/node-esm/app-graph-builder-LHLEY5QQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-4SMSG2RN.mjs +0 -13
- package/dist/lib/node-esm/chunk-4SMSG2RN.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-H3QRVOIY.mjs +0 -180
- package/dist/lib/node-esm/chunk-H3QRVOIY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SCOMEIPJ.mjs +0 -192
- package/dist/lib/node-esm/chunk-SCOMEIPJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ZS4YMD63.mjs +0 -19
- package/dist/lib/node-esm/chunk-ZS4YMD63.mjs.map +0 -7
- package/dist/lib/node-esm/client-ready-SL6BA2IP.mjs +0 -103
- package/dist/lib/node-esm/client-ready-SL6BA2IP.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-VW7XPMBG.mjs +0 -78
- package/dist/lib/node-esm/intent-resolver-VW7XPMBG.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-3PNZVMXB.mjs +0 -33
- package/dist/lib/node-esm/react-surface-3PNZVMXB.mjs.map +0 -7
- package/dist/lib/node-esm/settings-2AOUWDQY.mjs +0 -26
- package/dist/lib/node-esm/settings-2AOUWDQY.mjs.map +0 -7
- package/dist/lib/node-esm/state-5UHYHOJV.mjs +0 -27
- package/dist/lib/node-esm/state-5UHYHOJV.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -12
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/client-ready.d.ts +0 -10
- package/dist/types/src/capabilities/client-ready.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -7
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings.d.ts +0 -4
- package/dist/types/src/capabilities/settings.d.ts.map +0 -1
- package/dist/types/src/capabilities/state.d.ts +0 -6
- package/dist/types/src/capabilities/state.d.ts.map +0 -1
- package/dist/types/src/components/HelpContainer.d.ts +0 -3
- package/dist/types/src/components/HelpContainer.d.ts.map +0 -1
- package/dist/types/src/components/ObservabilitySettings.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -5
- package/dist/types/src/events.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -47
- package/src/capabilities/capabilities.ts +0 -23
- package/src/capabilities/client-ready.ts +0 -98
- package/src/capabilities/intent-resolver.ts +0 -69
- package/src/capabilities/react-surface.tsx +0 -27
- package/src/capabilities/settings.ts +0 -21
- package/src/capabilities/state.ts +0 -22
- package/src/components/HelpContainer.tsx +0 -41
- package/src/components/ObservabilitySettings.tsx +0 -48
- package/src/events.ts +0 -14
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
6
|
+
|
|
7
|
+
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
8
|
+
|
|
9
|
+
import { translations } from '../translations';
|
|
10
|
+
|
|
11
|
+
import { FeedbackForm } from './FeedbackForm';
|
|
12
|
+
|
|
13
|
+
const meta = {
|
|
14
|
+
title: 'plugins/plugin-observability/components/FeedbackForm',
|
|
15
|
+
component: FeedbackForm,
|
|
16
|
+
decorators: [withTheme(), withLayout({ layout: 'column' })],
|
|
17
|
+
parameters: {
|
|
18
|
+
layout: 'fullscreen',
|
|
19
|
+
translations,
|
|
20
|
+
},
|
|
21
|
+
} satisfies Meta<typeof FeedbackForm>;
|
|
22
|
+
|
|
23
|
+
export default meta;
|
|
24
|
+
|
|
25
|
+
type Story = StoryObj<typeof meta>;
|
|
26
|
+
|
|
27
|
+
export const Default: Story = {
|
|
28
|
+
args: {
|
|
29
|
+
onSave: (values) => {
|
|
30
|
+
console.log(values);
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -2,81 +2,32 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import React
|
|
5
|
+
import React from 'react';
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { FormProvider, useFormContext, useInputProps } from '@dxos/react-ui-form';
|
|
7
|
+
import { useTranslation } from '@dxos/react-ui';
|
|
8
|
+
import { Form, type FormRootProps, type FormSubmitProps } from '@dxos/react-ui-form';
|
|
10
9
|
|
|
11
10
|
import { meta } from '../meta';
|
|
12
11
|
import { UserFeedback } from '../types';
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
export type FeedbackFormProps = Pick<FormRootProps<UserFeedback>, 'onSave'> & Pick<FormSubmitProps, 'disabled'>;
|
|
15
14
|
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const messageProps = useInputProps(['message']);
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<div role='form' className='p-3 flex flex-col gap-2'>
|
|
24
|
-
<div role='none' className='space-b-1'>
|
|
25
|
-
<Input.Root validationValence={messageProps.getStatus().status}>
|
|
26
|
-
<Input.Label>{t('feedback text area label')}</Input.Label>
|
|
27
|
-
<Input.TextArea
|
|
28
|
-
classNames={'text-sm'}
|
|
29
|
-
rows={5}
|
|
30
|
-
cols={30}
|
|
31
|
-
placeholder={t('feedback text area placeholder')}
|
|
32
|
-
value={messageProps.getValue() ?? ''}
|
|
33
|
-
onChange={(e) => messageProps.onValueChange('string', e.target.value)}
|
|
34
|
-
// TODO(wittjosiah): This aggressively shows validation errors.
|
|
35
|
-
onBlur={messageProps.onBlur}
|
|
36
|
-
/>
|
|
37
|
-
<Input.DescriptionAndValidation>
|
|
38
|
-
<Input.Validation>{messageProps.getStatus().error}</Input.Validation>
|
|
39
|
-
</Input.DescriptionAndValidation>
|
|
40
|
-
</Input.Root>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
<div role='none' className='space-b-2'>
|
|
44
|
-
<IconButton
|
|
45
|
-
icon='ph--paper-plane-tilt--regular'
|
|
46
|
-
label={t('send feedback label')}
|
|
47
|
-
variant='primary'
|
|
48
|
-
type='submit'
|
|
49
|
-
classNames='is-full'
|
|
50
|
-
disabled={!canSave}
|
|
51
|
-
onClick={handleSave}
|
|
52
|
-
/>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
);
|
|
15
|
+
const defaultValues: UserFeedback = {
|
|
16
|
+
message: '',
|
|
17
|
+
includeLogs: true,
|
|
56
18
|
};
|
|
57
19
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const formRef = useRef<HTMLDivElement>(null);
|
|
61
|
-
const [_, update] = useState({});
|
|
62
|
-
const forceRender = useCallback(() => update({}), [update]);
|
|
63
|
-
|
|
64
|
-
const handleSave = useCallback(
|
|
65
|
-
(values: UserFeedback) => {
|
|
66
|
-
onSave(values);
|
|
67
|
-
// TODO(wittjosiah): Force re-render to clear the form.
|
|
68
|
-
forceRender();
|
|
69
|
-
},
|
|
70
|
-
[forceRender, onSave],
|
|
71
|
-
);
|
|
72
|
-
|
|
73
|
-
const initialValues = getSnapshot(defaultValues);
|
|
20
|
+
export const FeedbackForm = ({ onSave, disabled }: FeedbackFormProps) => {
|
|
21
|
+
const { t } = useTranslation(meta.id);
|
|
74
22
|
|
|
75
23
|
return (
|
|
76
|
-
<
|
|
77
|
-
<
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
-
|
|
24
|
+
<Form.Root schema={UserFeedback} defaultValues={defaultValues} onSave={onSave}>
|
|
25
|
+
<Form.Viewport>
|
|
26
|
+
<Form.Content>
|
|
27
|
+
<Form.FieldSet />
|
|
28
|
+
<Form.Submit icon='ph--paper-plane-tilt--regular' label={t('send feedback label')} disabled={disabled} />
|
|
29
|
+
</Form.Content>
|
|
30
|
+
</Form.Viewport>
|
|
31
|
+
</Form.Root>
|
|
81
32
|
);
|
|
82
33
|
};
|
package/src/components/index.ts
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
import React, { useCallback, useState } from 'react';
|
|
7
|
+
|
|
8
|
+
import { useCapability, useOperationInvoker } from '@dxos/app-framework/ui';
|
|
9
|
+
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
10
|
+
import { runAndForwardErrors } from '@dxos/effect';
|
|
11
|
+
import { useAsyncEffect } from '@dxos/react-hooks';
|
|
12
|
+
import { osTranslations } from '@dxos/ui-theme';
|
|
13
|
+
|
|
14
|
+
import { FeedbackForm } from '../../components';
|
|
15
|
+
import { meta } from '../../meta';
|
|
16
|
+
import { ObservabilityCapabilities, ObservabilityOperation, type UserFeedback } from '../../types';
|
|
17
|
+
|
|
18
|
+
/** Renders the feedback form, disabling it when the feedback survey is unavailable. */
|
|
19
|
+
export const HelpContainer = () => {
|
|
20
|
+
const { invokePromise } = useOperationInvoker();
|
|
21
|
+
const observability = useCapability(ObservabilityCapabilities.Observability);
|
|
22
|
+
const [feedbackAvailable, setFeedbackAvailable] = useState(false);
|
|
23
|
+
|
|
24
|
+
useAsyncEffect(
|
|
25
|
+
async (controller) => {
|
|
26
|
+
const available = await observability.isAvailable('feedback').pipe(
|
|
27
|
+
Effect.catchAll(() => Effect.succeed(false)),
|
|
28
|
+
Effect.catchAllDefect(() => Effect.succeed(false)),
|
|
29
|
+
runAndForwardErrors,
|
|
30
|
+
);
|
|
31
|
+
if (!controller.signal.aborted) {
|
|
32
|
+
setFeedbackAvailable(available);
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
[observability],
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
const handleSave = useCallback(
|
|
39
|
+
async (values: UserFeedback) => {
|
|
40
|
+
await invokePromise(ObservabilityOperation.CaptureUserFeedback, values);
|
|
41
|
+
await invokePromise(LayoutOperation.UpdateComplementary, { state: 'collapsed' });
|
|
42
|
+
await invokePromise(LayoutOperation.AddToast, {
|
|
43
|
+
id: `${meta.id}/feedback-success`,
|
|
44
|
+
icon: 'ph--paper-plane-tilt--regular',
|
|
45
|
+
duration: 3000,
|
|
46
|
+
title: ['feedback toast label', { ns: meta.id }],
|
|
47
|
+
description: ['feedback toast description', { ns: meta.id }],
|
|
48
|
+
closeLabel: ['close label', { ns: osTranslations }],
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
[invokePromise],
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
return <FeedbackForm onSave={handleSave} disabled={!feedbackAvailable} />;
|
|
55
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
|
|
8
|
+
import { useOperationInvoker } from '@dxos/app-framework/ui';
|
|
9
|
+
import { Input, Message, useTranslation } from '@dxos/react-ui';
|
|
10
|
+
import { Settings } from '@dxos/react-ui-form';
|
|
11
|
+
|
|
12
|
+
import { meta } from '../../meta';
|
|
13
|
+
import { ObservabilityOperation } from '../../types';
|
|
14
|
+
|
|
15
|
+
export const ObservabilitySettingsSchema = Schema.mutable(
|
|
16
|
+
Schema.Struct({
|
|
17
|
+
enabled: Schema.Boolean,
|
|
18
|
+
// TODO(wittjosiah): Separate settings for each observability feature.
|
|
19
|
+
// metrics?: boolean;
|
|
20
|
+
// telemetry?: boolean;
|
|
21
|
+
// errors?: boolean;
|
|
22
|
+
}),
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
export type ObservabilitySettingsProps = Schema.Schema.Type<typeof ObservabilitySettingsSchema>;
|
|
26
|
+
|
|
27
|
+
export type ObservabilitySettingsComponentProps = {
|
|
28
|
+
settings: ObservabilitySettingsProps;
|
|
29
|
+
onSettingsChange: (fn: (current: ObservabilitySettingsProps) => ObservabilitySettingsProps) => void;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const ObservabilitySettings = ({ settings }: ObservabilitySettingsComponentProps) => {
|
|
33
|
+
const { t } = useTranslation(meta.id);
|
|
34
|
+
const { invokePromise } = useOperationInvoker();
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<Settings.Root>
|
|
38
|
+
<Settings.Section title={t('settings title', { ns: meta.id })}>
|
|
39
|
+
<Message.Root valence='info' classNames=' mb-form-padding'>
|
|
40
|
+
<Message.Content>{t('observability description')}</Message.Content>
|
|
41
|
+
</Message.Root>
|
|
42
|
+
<Settings.Group>
|
|
43
|
+
<Settings.ItemInput title={t('observability enabled label')}>
|
|
44
|
+
<Input.Switch
|
|
45
|
+
checked={settings.enabled}
|
|
46
|
+
onCheckedChange={(checked) => invokePromise(ObservabilityOperation.Toggle, { state: !!checked })}
|
|
47
|
+
/>
|
|
48
|
+
</Settings.ItemInput>
|
|
49
|
+
</Settings.Group>
|
|
50
|
+
</Settings.Section>
|
|
51
|
+
</Settings.Root>
|
|
52
|
+
);
|
|
53
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type ComponentType, lazy } from 'react';
|
|
6
|
+
|
|
7
|
+
export { ObservabilitySettingsSchema } from './ObservabilitySettings/ObservabilitySettings';
|
|
8
|
+
export type {
|
|
9
|
+
ObservabilitySettingsProps,
|
|
10
|
+
ObservabilitySettingsComponentProps,
|
|
11
|
+
} from './ObservabilitySettings/ObservabilitySettings';
|
|
12
|
+
|
|
13
|
+
export const HelpContainer: ComponentType<any> = lazy(() => import('./HelpContainer'));
|
|
14
|
+
export const ObservabilitySettings: ComponentType<any> = lazy(() => import('./ObservabilitySettings'));
|
package/src/index.ts
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
export { ObservabilityCapabilities } from './
|
|
6
|
-
export { ObservabilityEvents } from './events';
|
|
5
|
+
export { ObservabilityCapabilities, ObservabilityEvents } from './types';
|
|
7
6
|
export * from './components';
|
|
8
7
|
export * from './meta';
|
|
9
8
|
export * from './ObservabilityPlugin';
|
package/src/meta.ts
CHANGED
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { type
|
|
5
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { trim } from '@dxos/util';
|
|
6
7
|
|
|
7
|
-
export const meta:
|
|
8
|
+
export const meta: Plugin.Meta = {
|
|
8
9
|
id: 'dxos.org/plugin/observability',
|
|
9
10
|
name: 'Telemetry',
|
|
11
|
+
description: trim`
|
|
12
|
+
Application observability and telemetry collection for monitoring performance and usage patterns.
|
|
13
|
+
Track metrics, logs, and traces for system health and analytics.
|
|
14
|
+
`,
|
|
10
15
|
icon: 'ph--eye--regular',
|
|
11
16
|
};
|
package/src/translations.ts
CHANGED
|
@@ -22,10 +22,10 @@ export const translations = [
|
|
|
22
22
|
// TODO: Add link about telemetry privacy. Make it clearer that user data is not collected.
|
|
23
23
|
'observability description':
|
|
24
24
|
'When enabled, basic usage data will used to improve the product. This may include performance metrics, error logs, and usage data. No personally identifiable information, other than your public key, is included with this data and no private data ever leaves your devices.',
|
|
25
|
-
|
|
26
25
|
'help label': 'Feedback & Support',
|
|
27
|
-
'feedback
|
|
28
|
-
'feedback
|
|
26
|
+
'feedback textarea label': 'Feedback',
|
|
27
|
+
'feedback textarea placeholder': 'Please enter your feedback, technical issue, or feature request.',
|
|
28
|
+
'include debug logs label': 'Include debug logs',
|
|
29
29
|
'send feedback label': 'Send Feedback',
|
|
30
30
|
'feedback toast label': 'Thank you for your feedback!',
|
|
31
31
|
'feedback toast description': 'We will review your feedback and get back to you as soon as possible.',
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type Atom } from '@effect-atom/atom-react';
|
|
6
|
+
import * as Schema from 'effect/Schema';
|
|
7
|
+
|
|
8
|
+
import { Capability } from '@dxos/app-framework';
|
|
9
|
+
import { type Client } from '@dxos/client';
|
|
10
|
+
import { type Observability } from '@dxos/observability';
|
|
11
|
+
|
|
12
|
+
import { type ObservabilitySettingsProps } from '../containers';
|
|
13
|
+
import { meta } from '../meta';
|
|
14
|
+
|
|
15
|
+
export namespace ObservabilityCapabilities {
|
|
16
|
+
export const Settings = Capability.make<Atom.Writable<ObservabilitySettingsProps>>(`${meta.id}/capability/settings`);
|
|
17
|
+
|
|
18
|
+
export const StateSchema = Schema.mutable(
|
|
19
|
+
Schema.Struct({
|
|
20
|
+
group: Schema.optional(Schema.String),
|
|
21
|
+
notified: Schema.optional(Schema.Boolean),
|
|
22
|
+
}),
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
export type State = Schema.Schema.Type<typeof StateSchema>;
|
|
26
|
+
|
|
27
|
+
export const State = Capability.make<Atom.Writable<State>>(`${meta.id}/capability/state`);
|
|
28
|
+
|
|
29
|
+
export const Observability = Capability.make<Observability.Observability>(`${meta.id}/capability/observability`);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// NOTE: This is cloned from the client plugin to avoid circular dependencies.
|
|
33
|
+
// TODO(burdon): Figure out how to share defs.
|
|
34
|
+
export const ClientCapability = Capability.make<Client>('dxos.org/plugin/client/capability/client');
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { ActivationEvent } from '@dxos/app-framework';
|
|
6
|
+
import { AppActivationEvents } from '@dxos/app-toolkit';
|
|
7
|
+
|
|
8
|
+
import { meta } from '../meta';
|
|
9
|
+
|
|
10
|
+
export namespace ObservabilityEvents {
|
|
11
|
+
export const StateReady: ActivationEvent.ActivationEvent = AppActivationEvents.createStateEvent(meta.id);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// NOTE: This is cloned from the client plugin to avoid circular dependencies.
|
|
15
|
+
export const ClientReadyEvent = ActivationEvent.make('dxos.org/plugin/client/event/client-ready');
|
package/src/types/index.ts
CHANGED
package/src/types/schema.ts
CHANGED
|
@@ -4,213 +4,81 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Schema from 'effect/Schema';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { Format } from '@dxos/echo';
|
|
9
|
+
import { Operation } from '@dxos/operation';
|
|
8
10
|
|
|
9
11
|
import { meta } from '../meta';
|
|
12
|
+
import { translations } from '../translations';
|
|
10
13
|
|
|
11
|
-
const
|
|
12
|
-
Schema.nonEmptyString<S>({ message: () => `Missing field: ${field}` });
|
|
13
|
-
|
|
14
|
-
const maxLength = <S extends Schema.Schema.Any>(field: string, length: number) =>
|
|
15
|
-
Schema.maxLength<S>(length, { message: () => `Exceeds max length (${length}): ${field}` });
|
|
14
|
+
const t = translations[0]['en-US'][meta.id];
|
|
16
15
|
|
|
17
16
|
export const UserFeedback = Schema.Struct({
|
|
18
|
-
message:
|
|
17
|
+
message: Format.Text.pipe(
|
|
18
|
+
Schema.nonEmptyString(),
|
|
19
|
+
Schema.maxLength(4_096),
|
|
20
|
+
Schema.annotations({
|
|
21
|
+
title: t['feedback textarea label'],
|
|
22
|
+
description: t['feedback textarea placeholder'],
|
|
23
|
+
}),
|
|
24
|
+
),
|
|
25
|
+
includeLogs: Schema.Boolean.pipe(
|
|
26
|
+
Schema.annotations({
|
|
27
|
+
title: t['include debug logs label'],
|
|
28
|
+
}),
|
|
29
|
+
Schema.optional,
|
|
30
|
+
),
|
|
19
31
|
});
|
|
20
32
|
|
|
21
33
|
export type UserFeedback = Schema.Schema.Type<typeof UserFeedback>;
|
|
22
34
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
35
|
+
const OBSERVABILITY_OPERATION = `${meta.id}/operation`;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Operations for the Observability plugin.
|
|
39
|
+
*/
|
|
40
|
+
export namespace ObservabilityOperation {
|
|
41
|
+
export const Toggle = Operation.make({
|
|
42
|
+
meta: {
|
|
43
|
+
key: `${OBSERVABILITY_OPERATION}/toggle`,
|
|
44
|
+
name: 'Toggle Observability',
|
|
45
|
+
description: 'Toggle observability on or off.',
|
|
46
|
+
},
|
|
47
|
+
services: [Capability.Service],
|
|
48
|
+
schema: {
|
|
49
|
+
input: Schema.Struct({
|
|
50
|
+
state: Schema.optional(Schema.Boolean),
|
|
51
|
+
}),
|
|
52
|
+
output: Schema.Boolean,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
30
55
|
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
|
|
56
|
+
export const CaptureUserFeedback = Operation.make({
|
|
57
|
+
meta: {
|
|
58
|
+
key: `${OBSERVABILITY_OPERATION}/capture-feedback`,
|
|
59
|
+
name: 'Capture User Feedback',
|
|
60
|
+
description: 'Capture user feedback.',
|
|
61
|
+
},
|
|
62
|
+
services: [Capability.Service],
|
|
63
|
+
schema: {
|
|
34
64
|
input: UserFeedback,
|
|
35
65
|
output: Schema.Void,
|
|
36
66
|
},
|
|
37
|
-
)
|
|
67
|
+
});
|
|
38
68
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
name:
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
// NOTE: Sort alphabetically by name.
|
|
51
|
-
input: Schema.Union(
|
|
52
|
-
Schema.Struct({
|
|
53
|
-
name: Schema.Literal('identity.create'),
|
|
54
|
-
}),
|
|
55
|
-
Schema.Struct({
|
|
56
|
-
name: Schema.Literal('identity.join'),
|
|
57
|
-
}),
|
|
58
|
-
Schema.Struct({
|
|
59
|
-
name: Schema.Literal('identity.recover'),
|
|
60
|
-
}),
|
|
61
|
-
Schema.Struct({
|
|
62
|
-
name: Schema.Literal('identity.share'),
|
|
63
|
-
}),
|
|
64
|
-
Schema.Struct({
|
|
65
|
-
name: Schema.Literal('navigation.activate'),
|
|
66
|
-
properties: Schema.Struct({
|
|
67
|
-
subjectId: Schema.String,
|
|
68
|
-
typename: Schema.optional(Schema.String),
|
|
69
|
-
}),
|
|
70
|
-
}),
|
|
71
|
-
Schema.Struct({
|
|
72
|
-
name: Schema.Literal('page.load'),
|
|
73
|
-
properties: Schema.Struct({
|
|
74
|
-
loadDuration: Schema.Number,
|
|
75
|
-
}),
|
|
76
|
-
}),
|
|
77
|
-
Schema.Struct({
|
|
78
|
-
name: Schema.Literal('plugins.toggle'),
|
|
79
|
-
properties: Schema.Struct({
|
|
80
|
-
plugin: Schema.String,
|
|
81
|
-
enabled: Schema.Boolean,
|
|
82
|
-
}),
|
|
83
|
-
}),
|
|
84
|
-
Schema.Struct({
|
|
85
|
-
name: Schema.Literal('space.create'),
|
|
86
|
-
properties: Schema.Struct({
|
|
87
|
-
spaceId: Type.SpaceId,
|
|
88
|
-
}),
|
|
89
|
-
}),
|
|
90
|
-
Schema.Struct({
|
|
91
|
-
name: Schema.Literal('space.join'),
|
|
92
|
-
properties: Schema.Struct({
|
|
93
|
-
spaceId: Type.SpaceId,
|
|
94
|
-
}),
|
|
95
|
-
}),
|
|
96
|
-
Schema.Struct({
|
|
97
|
-
name: Schema.Literal('space.limit'),
|
|
98
|
-
properties: Schema.Struct({
|
|
99
|
-
spaceId: Type.SpaceId,
|
|
100
|
-
}),
|
|
101
|
-
}),
|
|
102
|
-
Schema.Struct({
|
|
103
|
-
name: Schema.Literal('space.lock'),
|
|
104
|
-
properties: Schema.Struct({
|
|
105
|
-
spaceId: Type.SpaceId,
|
|
106
|
-
}),
|
|
107
|
-
}),
|
|
108
|
-
Schema.Struct({
|
|
109
|
-
name: Schema.Literal('space.migrate'),
|
|
110
|
-
properties: Schema.Struct({
|
|
111
|
-
spaceId: Type.SpaceId,
|
|
112
|
-
targetVersion: Schema.optional(Schema.String),
|
|
113
|
-
version: Schema.optional(Schema.String),
|
|
114
|
-
}),
|
|
115
|
-
}),
|
|
116
|
-
Schema.Struct({
|
|
117
|
-
name: Schema.Literal('space.schema.use'),
|
|
118
|
-
properties: Schema.Struct({
|
|
119
|
-
spaceId: Type.SpaceId,
|
|
120
|
-
typename: Schema.String,
|
|
121
|
-
}),
|
|
122
|
-
}),
|
|
123
|
-
Schema.Struct({
|
|
124
|
-
name: Schema.Literal('space.schema.add'),
|
|
125
|
-
properties: Schema.Struct({
|
|
126
|
-
spaceId: Type.SpaceId,
|
|
127
|
-
objectId: Schema.String,
|
|
128
|
-
typename: Schema.String,
|
|
129
|
-
}),
|
|
130
|
-
}),
|
|
131
|
-
Schema.Struct({
|
|
132
|
-
name: Schema.Literal('space.object.add'),
|
|
133
|
-
properties: Schema.Struct({
|
|
134
|
-
spaceId: Type.SpaceId,
|
|
135
|
-
objectId: Schema.String,
|
|
136
|
-
typename: Schema.optional(Schema.String),
|
|
137
|
-
}),
|
|
138
|
-
}),
|
|
139
|
-
Schema.Struct({
|
|
140
|
-
name: Schema.Literal('space.share'),
|
|
141
|
-
properties: Schema.Struct({
|
|
142
|
-
spaceId: Type.SpaceId,
|
|
143
|
-
}),
|
|
144
|
-
}),
|
|
145
|
-
Schema.Struct({
|
|
146
|
-
name: Schema.Literal('space.unlock'),
|
|
147
|
-
properties: Schema.Struct({
|
|
148
|
-
spaceId: Type.SpaceId,
|
|
149
|
-
}),
|
|
150
|
-
}),
|
|
151
|
-
Schema.Struct({
|
|
152
|
-
name: Schema.Literal('threads.create'),
|
|
153
|
-
properties: Schema.Struct({
|
|
154
|
-
spaceId: Type.SpaceId,
|
|
155
|
-
threadId: Schema.String,
|
|
156
|
-
}),
|
|
157
|
-
}),
|
|
158
|
-
Schema.Struct({
|
|
159
|
-
name: Schema.Literal('threads.delete'),
|
|
160
|
-
properties: Schema.Struct({
|
|
161
|
-
spaceId: Type.SpaceId,
|
|
162
|
-
threadId: Schema.String,
|
|
163
|
-
}),
|
|
164
|
-
}),
|
|
165
|
-
Schema.Struct({
|
|
166
|
-
name: Schema.Literal('threads.message.add'),
|
|
167
|
-
properties: Schema.Struct({
|
|
168
|
-
spaceId: Type.SpaceId,
|
|
169
|
-
threadId: Schema.String,
|
|
170
|
-
threadLength: Schema.Number,
|
|
171
|
-
messageId: Schema.String,
|
|
172
|
-
messageLength: Schema.Number,
|
|
173
|
-
}),
|
|
174
|
-
}),
|
|
175
|
-
Schema.Struct({
|
|
176
|
-
name: Schema.Literal('threads.message.delete'),
|
|
177
|
-
properties: Schema.Struct({
|
|
178
|
-
spaceId: Type.SpaceId,
|
|
179
|
-
threadId: Schema.String,
|
|
180
|
-
messageId: Schema.String,
|
|
181
|
-
}),
|
|
182
|
-
}),
|
|
183
|
-
Schema.Struct({
|
|
184
|
-
name: Schema.Literal('threads.message.undo-delete'),
|
|
185
|
-
properties: Schema.Struct({
|
|
186
|
-
spaceId: Type.SpaceId,
|
|
187
|
-
threadId: Schema.String,
|
|
188
|
-
messageId: Schema.String,
|
|
189
|
-
}),
|
|
190
|
-
}),
|
|
191
|
-
Schema.Struct({
|
|
192
|
-
name: Schema.Literal('threads.message.update'),
|
|
193
|
-
properties: Schema.Struct({
|
|
194
|
-
spaceId: Type.SpaceId,
|
|
195
|
-
messageId: Schema.String,
|
|
196
|
-
messageLength: Schema.Number,
|
|
197
|
-
}),
|
|
198
|
-
}),
|
|
199
|
-
Schema.Struct({
|
|
200
|
-
name: Schema.Literal('threads.toggle-resolved'),
|
|
201
|
-
properties: Schema.Struct({
|
|
202
|
-
spaceId: Type.SpaceId,
|
|
203
|
-
threadId: Schema.String,
|
|
204
|
-
}),
|
|
205
|
-
}),
|
|
206
|
-
Schema.Struct({
|
|
207
|
-
name: Schema.Literal('threads.undo-delete'),
|
|
208
|
-
properties: Schema.Struct({
|
|
209
|
-
spaceId: Type.SpaceId,
|
|
210
|
-
threadId: Schema.String,
|
|
211
|
-
}),
|
|
69
|
+
export const SendEvent = Operation.make({
|
|
70
|
+
meta: {
|
|
71
|
+
key: `${OBSERVABILITY_OPERATION}/send-event`,
|
|
72
|
+
name: 'Send Event',
|
|
73
|
+
description: 'Send an observability event.',
|
|
74
|
+
},
|
|
75
|
+
services: [Capability.Service],
|
|
76
|
+
schema: {
|
|
77
|
+
input: Schema.Struct({
|
|
78
|
+
name: Schema.String.annotations({ description: 'The name of the event.' }),
|
|
79
|
+
properties: Schema.optional(Schema.Any).annotations({ description: 'Event properties.' }),
|
|
212
80
|
}),
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
})
|
|
81
|
+
output: Schema.Void,
|
|
82
|
+
},
|
|
83
|
+
});
|
|
216
84
|
}
|