@odigos/ui-kit 0.0.249 → 0.0.251
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/CHANGELOG.md +14 -0
- package/docs/api-context.md +687 -0
- package/lib/chunks/connections-scope-CneIqjeg.js +1 -0
- package/lib/chunks/flow-CQi_KYfs.js +49 -0
- package/lib/chunks/helpers-K1tnyqhm.js +19 -0
- package/lib/chunks/{index-CRKgHzab.js → index-Dv0RvKAp.js} +8 -8
- package/lib/chunks/source-instrument-form-context-C79I_5cH.js +1 -0
- package/lib/chunks/{ui-components-DODwSdKu.js → ui-components-BKrLf2tx.js} +214 -214
- package/lib/chunks/use-odigos-api-CDHW7ekQ.js +5 -0
- package/lib/chunks/vendor-BFqT13Me.js +1 -0
- package/lib/components/_v2/segment/index.d.ts +4 -2
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants/strings/index.d.ts +7 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/add-action-drawer/index.d.ts +0 -2
- package/lib/containers/_v2/_drawers/add-destination-drawer/form-column/index.d.ts +1 -5
- package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +0 -6
- package/lib/containers/_v2/_drawers/add-destination-drawer/lists-filters/index.d.ts +2 -1
- package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +0 -2
- package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +1 -4
- package/lib/containers/_v2/_drawers/edit-action-drawer/index.d.ts +0 -3
- package/lib/containers/_v2/_drawers/edit-config-drawer/index.d.ts +1 -3
- package/lib/containers/_v2/_drawers/edit-destination-drawer/index.d.ts +0 -5
- package/lib/containers/_v2/_drawers/edit-rule-drawer/index.d.ts +0 -3
- package/lib/containers/_v2/_drawers/edit-source-drawer/debug/index.d.ts +1 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/index.d.ts +3 -14
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/index.d.ts +1 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/index.d.ts +0 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/peers/index.d.ts +1 -6
- package/lib/containers/_v2/_drawers/edit-source-drawer/profiling/index.d.ts +1 -15
- package/lib/containers/_v2/_drawers/edit-source-drawer/sampling/index.d.ts +8 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/sampling/rule-row.d.ts +8 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/tabs.d.ts +1 -0
- package/lib/containers/_v2/_drawers/system-drawer/describe/index.d.ts +1 -8
- package/lib/containers/_v2/_drawers/system-drawer/diagnose/index.d.ts +1 -4
- package/lib/containers/_v2/_drawers/system-drawer/index.d.ts +1 -4
- package/lib/containers/_v2/_drawers/system-drawer/tokens/index.d.ts +1 -2
- package/lib/containers/_v2/_forms/add-destination-form/index.d.ts +1 -2
- package/lib/containers/_v2/_modals/add-data-stream-modal/index.d.ts +0 -3
- package/lib/containers/_v2/_modals/edit-data-stream-modal/index.d.ts +0 -2
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/types.d.ts +1 -4
- package/lib/containers/_v2/central-connections/index.d.ts +1 -12
- package/lib/containers/_v2/onboarding/index.d.ts +0 -8
- package/lib/containers/_v2/overview/columns/column/head.d.ts +1 -1
- package/lib/containers/_v2/overview/columns/column/index.d.ts +2 -1
- package/lib/containers/_v2/overview/columns/index.d.ts +1 -8
- package/lib/containers/_v2/overview/data-stream-select/index.d.ts +1 -10
- package/lib/containers/_v2/overview/drawers/index.d.ts +2 -29
- package/lib/containers/_v2/overview/index.d.ts +2 -8
- package/lib/containers/_v2/overview/multi-source-control/index.d.ts +1 -5
- package/lib/containers/_v2/pipeline-collectors/index.d.ts +0 -7
- package/lib/containers/_v2/pipeline-collectors/pods-info/index.d.ts +1 -2
- package/lib/containers/_v2/pipeline-collectors/pods-info/pod-drawer/index.d.ts +1 -2
- package/lib/containers/_v2/sampling-rules/helpers.d.ts +2 -0
- package/lib/containers/_v2/sampling-rules/types.d.ts +2 -16
- package/lib/containers/_v2/settings/index.d.ts +0 -9
- package/lib/containers/service-map/index.d.ts +4 -2
- package/lib/containers/v2.js +197 -166
- package/lib/containers.js +7 -7
- package/lib/contexts/index.d.ts +1 -0
- package/lib/contexts/odigos-api/capabilities.d.ts +38 -0
- package/lib/contexts/odigos-api/client.d.ts +22 -0
- package/lib/contexts/odigos-api/connections-scope.d.ts +18 -0
- package/lib/contexts/odigos-api/hooks/use-actions-api.d.ts +26 -0
- package/lib/contexts/odigos-api/hooks/use-collectors-api.d.ts +25 -0
- package/lib/contexts/odigos-api/hooks/use-config-api.d.ts +24 -0
- package/lib/contexts/odigos-api/hooks/use-data-streams-api.d.ts +26 -0
- package/lib/contexts/odigos-api/hooks/use-describe-api.d.ts +33 -0
- package/lib/contexts/odigos-api/hooks/use-destinations-api.d.ts +50 -0
- package/lib/contexts/odigos-api/hooks/use-instrumentation-rules-api.d.ts +35 -0
- package/lib/contexts/odigos-api/hooks/use-k8s-manifest-api.d.ts +14 -0
- package/lib/contexts/odigos-api/hooks/use-metrics-api.d.ts +13 -0
- package/lib/contexts/odigos-api/hooks/use-namespace-api.d.ts +30 -0
- package/lib/contexts/odigos-api/hooks/use-profiling-api.d.ts +17 -0
- package/lib/contexts/odigos-api/hooks/use-sampling-api.d.ts +39 -0
- package/lib/contexts/odigos-api/hooks/use-service-map-api.d.ts +13 -0
- package/lib/contexts/odigos-api/hooks/use-snapshots-api.d.ts +13 -0
- package/lib/contexts/odigos-api/hooks/use-sources-api.d.ts +75 -0
- package/lib/contexts/odigos-api/hooks/use-tokens-api.d.ts +12 -0
- package/lib/contexts/odigos-api/index.d.ts +37 -0
- package/lib/contexts/odigos-api/internal/notify.d.ts +49 -0
- package/lib/contexts/odigos-api/internal/source-payloads.d.ts +53 -0
- package/lib/contexts/odigos-api/platform-helpers.d.ts +98 -0
- package/lib/contexts/odigos-api/provider.d.ts +28 -0
- package/lib/contexts/odigos-api/runner.d.ts +32 -0
- package/lib/contexts/odigos-api/types.d.ts +831 -0
- package/lib/contexts/odigos-api/use-api-for-connections.d.ts +43 -0
- package/lib/contexts/odigos-api/use-api-query.d.ts +130 -0
- package/lib/contexts/odigos-api/use-odigos-api.d.ts +103 -0
- package/lib/contexts/odigos-api.js +1 -0
- package/lib/contexts/odigos-context.d.ts +2 -2
- package/lib/contexts/storybook-context.d.ts +2 -2
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons/destinations/open-telemetry-logo/index.d.ts +2 -1
- package/lib/snippets/_v2/sampling-rule-form-sections/preset-with-custom-input.d.ts +1 -1
- package/lib/snippets/v2.js +1 -1
- package/lib/snippets.js +1 -49
- package/lib/store/index.d.ts +0 -1
- package/lib/store/useDrawerStore.d.ts +6 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/actions/index.d.ts +0 -5
- package/lib/types/common/index.d.ts +29 -4
- package/lib/types/destinations/index.d.ts +0 -10
- package/lib/types/index.d.ts +0 -1
- package/lib/types/instrumentation-rules/index.d.ts +0 -5
- package/lib/types/namespaces/index.d.ts +0 -5
- package/lib/types/pipeline-collectors/index.d.ts +0 -5
- package/lib/types/snapshot/index.d.ts +0 -2
- package/lib/types/sources/index.d.ts +0 -30
- package/lib/types/tokens/index.d.ts +0 -6
- package/lib/types/workload/index.d.ts +46 -22
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +31 -22
- package/lib/chunks/helpers-IEFhGXc7.js +0 -19
- package/lib/chunks/source-instrument-form-context-DjIHPYQJ.js +0 -1
- package/lib/chunks/vendor-Be0cOokr.js +0 -1
- package/lib/mock-data/actions/index.d.ts +0 -2
- package/lib/mock-data/config/index.d.ts +0 -3
- package/lib/mock-data/connections/index.d.ts +0 -2
- package/lib/mock-data/describe/index.d.ts +0 -3
- package/lib/mock-data/destinations/index.d.ts +0 -4
- package/lib/mock-data/index.d.ts +0 -15
- package/lib/mock-data/instrumentation-instances/index.d.ts +0 -2
- package/lib/mock-data/instrumentation-rules/index.d.ts +0 -2
- package/lib/mock-data/namespaces/index.d.ts +0 -2
- package/lib/mock-data/pipeline-collectors/index.d.ts +0 -6
- package/lib/mock-data/profiling/index.d.ts +0 -8
- package/lib/mock-data/service-map/index.d.ts +0 -4
- package/lib/mock-data/snapshot/index.d.ts +0 -5
- package/lib/mock-data/sources/index.d.ts +0 -4
- package/lib/mock-data/sources/yamls.d.ts +0 -22
- package/lib/mock-data/tokens/index.d.ts +0 -2
- package/lib/mock-data/traces/index.d.ts +0 -2
- package/lib/store/useEntityStore.d.ts +0 -24
- package/lib/types/k8s-manifest/index.d.ts +0 -2
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface DataStreamSelectProps {
|
|
4
|
-
updateDataStream: (dataStreamName: string, dataStream: DataStream) => void | Promise<void>;
|
|
5
|
-
deleteDataStream: (dataStreamName: string) => void | Promise<void>;
|
|
6
|
-
/**
|
|
7
|
-
* Optional. When omitted, "create" just appends to the local data-streams store
|
|
8
|
-
* and selects the new stream. Provide this when there's a remote create mutation.
|
|
9
|
-
*/
|
|
10
|
-
createDataStream?: (dataStream: DataStream) => void | Promise<void>;
|
|
11
|
-
}
|
|
2
|
+
export type DataStreamSelectProps = Record<string, never>;
|
|
12
3
|
export declare const DataStreamSelect: FC<DataStreamSelectProps>;
|
|
@@ -1,33 +1,6 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { EditSourceDrawerProps } from '../../_drawers';
|
|
3
3
|
export interface DrawersProps {
|
|
4
|
-
|
|
5
|
-
fetchNamespacesWithWorkloads: FetchNamespacesWithWorkloads;
|
|
6
|
-
persistSources: PersistSourcesFunc;
|
|
7
|
-
restartWorkloads: RestartWorkloadsFunc;
|
|
8
|
-
restartPod: RestartPodFunc;
|
|
9
|
-
recoverFromRollback: RecoverFromRollbackFunc;
|
|
10
|
-
updateSource: UpdateSourceFunc;
|
|
11
|
-
fetchSourceById: FetchSourceByIdFunc;
|
|
12
|
-
fetchPeerSources: FetchPeerSourcesFunc;
|
|
13
|
-
enableProfiling: EnableProfilingFunc;
|
|
14
|
-
fetchProfilingSlots: FetchProfilingSlotsFunc;
|
|
15
|
-
fetchSourceProfiling: FetchSourceProfilingFunc;
|
|
16
|
-
fetchK8sManifest: FetchK8sManifestFn;
|
|
17
|
-
workloads?: {
|
|
18
|
-
id: WorkloadId;
|
|
19
|
-
}[];
|
|
20
|
-
getDestinationCategories: GetDestinationCategoriesFunc;
|
|
21
|
-
getPotentialDestinations: GetPotentialDestinationsFunc;
|
|
22
|
-
testConnection: TestConnectionFunc;
|
|
23
|
-
createDestination: CreateDestinationFunc;
|
|
24
|
-
updateDestination: UpdateDestinationFunc;
|
|
25
|
-
deleteDestination: DeleteDestinationFunc;
|
|
26
|
-
createInstrumentationRule: CreateInstrumentationRuleFunc;
|
|
27
|
-
updateInstrumentationRule: UpdateInstrumentationRuleFunc;
|
|
28
|
-
deleteInstrumentationRule: DeleteInstrumentationRuleFunc;
|
|
29
|
-
createAction: CreateActionFunc;
|
|
30
|
-
updateAction: UpdateActionFunc;
|
|
31
|
-
deleteAction: DeleteActionFunc;
|
|
4
|
+
onRedirectToSampling: EditSourceDrawerProps['onRedirectToSampling'];
|
|
32
5
|
}
|
|
33
6
|
export declare const Drawers: FC<DrawersProps>;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import { type ColumnsProps } from './columns';
|
|
3
2
|
import { type DrawersProps } from './drawers';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
metrics: ColumnsProps['metrics'];
|
|
7
|
-
refetchSources: ColumnsProps['refetchSources'];
|
|
8
|
-
refetchDestinations: ColumnsProps['refetchDestinations'];
|
|
9
|
-
refetchActions: ColumnsProps['refetchActions'];
|
|
10
|
-
refetchInstrumentationRules: ColumnsProps['refetchInstrumentationRules'];
|
|
3
|
+
export interface OverviewProps {
|
|
4
|
+
onRedirectToSampling: DrawersProps['onRedirectToSampling'];
|
|
11
5
|
}
|
|
12
6
|
export declare const Overview: FC<OverviewProps>;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface MultiSourceControlProps {
|
|
4
|
-
restartWorkloads: RestartWorkloadsFunc;
|
|
5
|
-
persistSources: PersistSourcesFunc;
|
|
6
|
-
}
|
|
2
|
+
export type MultiSourceControlProps = Record<string, never>;
|
|
7
3
|
export declare const MultiSourceControl: FC<MultiSourceControlProps>;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import { Tabs } from './enum';
|
|
3
|
-
import { type GetExtendedPodInfo, type GetGatewayInfo, type GetGatewayPods, type GetNodeCollectorInfo, type GetNodeCollectorPods, type EffectiveConfig } from '@/types';
|
|
4
3
|
export interface PipelineCollectorsProps {
|
|
5
4
|
minSupportedVersion?: number;
|
|
6
|
-
effectiveConfig?: Pick<EffectiveConfig, 'odigosOwnTelemetryStore'> | null;
|
|
7
|
-
getGatewayInfo: GetGatewayInfo;
|
|
8
|
-
getGatewayPods: GetGatewayPods;
|
|
9
|
-
getNodeCollectorInfo: GetNodeCollectorInfo;
|
|
10
|
-
getNodeCollectorPods: GetNodeCollectorPods;
|
|
11
|
-
getExtendedPodInfo: GetExtendedPodInfo;
|
|
12
5
|
}
|
|
13
6
|
export declare const TABS: {
|
|
14
7
|
value: Tabs;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type PodInfo } from '@/types';
|
|
3
3
|
export interface PodsInfoProps {
|
|
4
4
|
isLoading?: boolean;
|
|
5
5
|
pods: PodInfo[];
|
|
6
|
-
getExtendedPodInfo: GetExtendedPodInfo;
|
|
7
6
|
withSpanDropRate: boolean;
|
|
8
7
|
}
|
|
9
8
|
export declare const PodsInfo: FC<PodsInfoProps>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
+
import { type PodInfo } from '@/types';
|
|
2
3
|
import { type HeaderProps } from '@/components/_v2/drawer/header';
|
|
3
|
-
import { type GetExtendedPodInfo, type PodInfo } from '@/types';
|
|
4
4
|
export interface PodDrawerProps {
|
|
5
5
|
pod: PodInfo | null;
|
|
6
|
-
getExtendedPodInfo: GetExtendedPodInfo;
|
|
7
6
|
onClose: HeaderProps['onClose'];
|
|
8
7
|
}
|
|
9
8
|
export declare const PodDrawer: FC<PodDrawerProps>;
|
|
@@ -14,6 +14,7 @@ export declare const SAMPLING_SEGMENT_OPTIONS: {
|
|
|
14
14
|
export declare const SAMPLING_CATEGORY_NOTES: Record<SamplingCategory, string>;
|
|
15
15
|
export declare const SAMPLING_CATEGORY_LIST_TITLES: Record<SamplingCategory, string>;
|
|
16
16
|
export declare const CATEGORY_TO_RULE_CATEGORY: Record<SamplingCategory, SamplingRuleCategory>;
|
|
17
|
+
export declare const RULE_CATEGORY_TO_CATEGORY: Record<SamplingRuleCategory, SamplingCategory>;
|
|
17
18
|
export declare function buildScopeParts(scopes: SourcesScopes | null | undefined): ColoredSpanPart[];
|
|
18
19
|
export declare function buildNoisySummary(rule: NoisyOperationRule): ColoredSpanPart[];
|
|
19
20
|
export declare function buildHighlyRelevantSummary(rule: HighlyRelevantOperationRule): ColoredSpanPart[];
|
|
@@ -23,6 +24,7 @@ export declare function buildSamplingRuleItems(groups: SamplingRules[], category
|
|
|
23
24
|
export declare function buildSummaryForRule(category: SamplingRuleCategory, rule: NoisyOperationRule | HighlyRelevantOperationRule | CostReductionRule): ColoredSpanPart[];
|
|
24
25
|
export declare function refreshViewRuleData(groups: SamplingRules[], current: ViewRuleData): ViewRuleData | null;
|
|
25
26
|
export declare function lookupViewRuleData(groups: SamplingRules[], item: SamplingRuleItem): ViewRuleData | null;
|
|
27
|
+
export declare function findViewRuleDataByRuleId(groups: SamplingRules[], ruleId: string, category: SamplingRuleCategory): ViewRuleData | null;
|
|
26
28
|
export interface DuplicateCheckInput {
|
|
27
29
|
sourceScopes?: SourcesScopesInput | null;
|
|
28
30
|
operation?: HeadSamplingOperationMatcher | TailSamplingOperationMatcher | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SamplingRuleItem } from '@/types';
|
|
2
2
|
export interface SamplingRulesListProps {
|
|
3
3
|
title: string;
|
|
4
4
|
titleTooltip?: string;
|
|
@@ -10,20 +10,6 @@ export interface SamplingRulesListProps {
|
|
|
10
10
|
onDeleteRule: (ruleId: string, samplingId: string) => void;
|
|
11
11
|
}
|
|
12
12
|
export interface SamplingRulesProps {
|
|
13
|
-
|
|
14
|
-
id: WorkloadId;
|
|
15
|
-
}[];
|
|
16
|
-
samplingRules: SamplingRules[];
|
|
17
|
-
k8sHealthProbesConfig: SamplingRulesK8sHealthConfig | null;
|
|
18
|
-
loading: boolean;
|
|
19
|
-
fetchSamplingRules: () => void;
|
|
20
|
-
createNoisyOperationRule: (samplingId: string, rule: NoisyOperationRuleInput) => Promise<void> | void;
|
|
21
|
-
updateNoisyOperationRule: (samplingId: string, ruleId: string, rule: NoisyOperationRuleInput) => Promise<void> | void;
|
|
22
|
-
createHighlyRelevantOperationRule: (samplingId: string, rule: HighlyRelevantOperationRuleInput) => Promise<void> | void;
|
|
23
|
-
updateHighlyRelevantOperationRule: (samplingId: string, ruleId: string, rule: HighlyRelevantOperationRuleInput) => Promise<void> | void;
|
|
24
|
-
createCostReductionRule: (samplingId: string, rule: CostReductionRuleInput) => Promise<void> | void;
|
|
25
|
-
updateCostReductionRule: (samplingId: string, ruleId: string, rule: CostReductionRuleInput) => Promise<void> | void;
|
|
26
|
-
deleteSamplingRule: (samplingId: string, ruleId: string, category: SamplingRuleCategory) => Promise<void> | void;
|
|
27
|
-
updateK8sHealthProbesConfig: (enabled: boolean, keepPercentage: number) => Promise<void> | void;
|
|
13
|
+
/** Optional documentation URL surfaced in the toolbar. */
|
|
28
14
|
docsUrl?: string;
|
|
29
15
|
}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import { type ConfigYaml, type EffectiveConfig, type LocalUiConfigInput } from '@/types';
|
|
3
2
|
export interface SettingsProps {
|
|
4
3
|
minSupportedVersion?: number;
|
|
5
|
-
configYamls: ConfigYaml[];
|
|
6
|
-
configYamlsLoading: boolean;
|
|
7
|
-
effectiveConfig: EffectiveConfig | null;
|
|
8
|
-
effectiveConfigLoading: boolean;
|
|
9
|
-
refetch?: () => Promise<unknown>;
|
|
10
|
-
factoryReset?: () => Promise<unknown>;
|
|
11
|
-
onSave: (config: LocalUiConfigInput) => Promise<void>;
|
|
12
|
-
saveLoading: boolean;
|
|
13
4
|
}
|
|
14
5
|
export declare const Settings: FC<SettingsProps>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ServiceMapSources } from '@/types';
|
|
3
3
|
interface ServiceMapProps {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
/** Optional override; when omitted the container polls via `useApiQuery('GET_SERVICE_MAP')`. */
|
|
5
|
+
serviceMap?: ServiceMapSources;
|
|
6
|
+
/** Polling cadence in ms. Defaults to 15s. */
|
|
7
|
+
pollIntervalMs?: number;
|
|
6
8
|
}
|
|
7
9
|
declare const ServiceMap: React.FC<ServiceMapProps>;
|
|
8
10
|
export { ServiceMap, type ServiceMapProps };
|