@odigos/ui-kit 0.0.232 → 0.0.234
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 +15 -0
- package/lib/chunks/{index-Bbukn13F.js → index-Coer-PRZ.js} +1 -1
- package/lib/chunks/{index-D7sjsMOG.js → index-EPaudVws.js} +11 -11
- package/lib/chunks/{index-Cw4LkdaE.js → index-eOSrP07c.js} +1 -1
- package/lib/chunks/ui-components-BogDd0Qc.js +2696 -0
- package/lib/components/_v2/modal/index.d.ts +6 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants/sampling/index.d.ts +74 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_modals/add-data-stream-modal/index.d.ts +7 -0
- package/lib/containers/_v2/_modals/edit-data-stream-modal/index.d.ts +7 -0
- package/lib/containers/_v2/_modals/index.d.ts +1 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/chrome.d.ts +8 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/footer.d.ts +13 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/header.d.ts +6 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/index.d.ts +8 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/info-card.d.ts +7 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/lists.d.ts +11 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/primary-banner.d.ts +4 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/section.d.ts +3 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/common/sub-title.d.ts +4 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/index.d.ts +4 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/preset-row.d.ts +19 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/steps/step-advanced.d.ts +7 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/steps/step-drop-list.d.ts +9 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/steps/step-keep-list.d.ts +19 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/steps/step-noisy.d.ts +8 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/steps/step-strategy.d.ts +10 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/steps/step-success.d.ts +5 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/steps/step-welcome.d.ts +6 -0
- package/lib/containers/_v2/_modals/sampling-onboarding-modal/types.d.ts +29 -0
- package/lib/containers/_v2/sampling-rules/types.d.ts +8 -8
- package/lib/containers/v2.js +228 -70
- package/lib/containers.js +22 -22
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons/destinations/index.d.ts +1 -0
- package/lib/icons/destinations/pyroscope-logo/index.d.ts +2 -0
- package/lib/icons.js +1 -1
- package/lib/snippets/v2.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/destinations/index.d.ts +6 -1
- package/lib/types/signals/index.d.ts +4 -2
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/ui-components-of0mjGMv.js +0 -2671
|
@@ -5,6 +5,12 @@ export interface ModalProps {
|
|
|
5
5
|
relativeToParent?: boolean;
|
|
6
6
|
onBack?: () => void;
|
|
7
7
|
onClose?: () => void;
|
|
8
|
+
/**
|
|
9
|
+
* Fires after the close animation has finished and the modal has actually unmounted
|
|
10
|
+
* its DOM. Use this to defer cleanup that would otherwise visibly flash during the
|
|
11
|
+
* slide-out — e.g. resetting a form context bound to the modal's content.
|
|
12
|
+
*/
|
|
13
|
+
onCloseEnd?: () => void;
|
|
8
14
|
children: React.ReactNode;
|
|
9
15
|
}
|
|
10
16
|
export declare const Modal: FC<ModalProps>;
|
package/lib/components/v2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{gk as Autocomplete,x as Badge,m as Button,B as ButtonSize,hB as ButtonTab,hC as ButtonTabList,a as ButtonVariants,cn as Checkbox,hD as CheckboxList,eL as CheckboxSize,eR as CliCommand,hE as Condition,c_ as Conditions,hF as DEFAULT_TIME_UNITS,D as DataCard,c4 as Drawer,di as DropData,dk as DropDataAlignX,dj as DropDataAlignY,cP as DropDown,co as FieldMessage,cm as FieldTitle,eU as GaugeChart,hG as GaugeChartVariant,hH as Header,_ as HoverActions,cQ as IconButton,cf as IconButtonSize,cp as Input,cr as InputList,cq as InputTable,eJ as Island,L as Loader,eC as Modal,hI as Navbar,N as NoData,cw as Note,e5 as Radio,hJ as RadioGroup,e6 as RadioSize,w as Search,cL as SectionCard,hK as SectionCardSize,S as Segment,s as SegmentSize,r as SegmentVariant,eT as StatusCard,eK as Stepper,t as Table,v as TableVariant,c$ as Tag,cu as TextArea,eV as TextCard,fs as TimeInput,j as Toggle,l as ToggleLabelAlign,hL as ToggleList,k as ToggleSize,hM as ToggleVariant,eM as TruncatableTypography,n as Typography,o as TypographyColor,p as TypographySize,cT as TypographyVariants,cA as WarningModal}from"../chunks/ui-components-BogDd0Qc.js";import"react/jsx-runtime";import"styled-components";import"../icons.js";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{aJ as AutocompleteInput,a_ as Badge,b0 as Button,i as CancelWarning,b as CenterThis,ai as Checkbox,C as Code,aa as ConditionDetails,Z as DataCard,G as DataCardFieldTypes,bM as DataCardFields,hp as DataFinger,b2 as DataTab,h as DeleteWarning,X as DescribeRow,W as Divider,aw as DocsButton,f as Drawer,hq as DrawerFooter,hr as DrawerHeader,bp as Dropdown,hs as ErrorBoundary,bx as ExtendArrow,M as FadeLoader,aj as FieldError,ah as FieldLabel,y as FlexColumn,F as FlexRow,ht as Header,aq as IconButton,cb as IconGroup,aV as IconTitleBadge,aQ as IconWrapped,c9 as IconsNav,hu as ImageControlled,I as Input,ap as InputList,am as InputTable,aY as InteractiveTable,ao as KeyValueInputsList,hv as LoadingText,aG as Modal,aH as ModalBody,ax as MonitorsCheckboxes,aS as MonitorsIcons,aK as NavigationButtons,Q as NoDataFound,a0 as NotificationNote,hw as Overlay,cZ as Padding,eE as PageContent,bl as Popup,cg as PopupForm,cl as ScrollX,b6 as ScrollY,av as SectionTitle,at as Segment,bn as SelectionButton,be as SkeletonLoader,J as Status,bL as Stepper,hx as TabList,aT as TableContainer,aU as TableTitleWrap,aX as TableWrap,bV as Tag,T as Text,ay as TextArea,an as Toggle,cj as ToggleCodeComponent,q as Tooltip,aZ as TraceLoader,eW as UpgradeRequiredWrapper,bm as VerticalScroll,ac as WarningModal,hy as getLinksFromText,hz as getStrongsFromText,hA as renderText}from"./chunks/ui-components-BogDd0Qc.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
|
@@ -93,6 +93,80 @@ export declare const EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE = "Automatic
|
|
|
93
93
|
export declare const CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE = "Create 'Cost Reduction' rule";
|
|
94
94
|
export declare const EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE = "Edit 'Cost Reduction' rule";
|
|
95
95
|
export declare const EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE = "Automatically drop a percentage of traces across the entire cluster.";
|
|
96
|
+
export declare const SAMPLING_ONBOARDING_BTN_SKIP = "Skip setup";
|
|
97
|
+
export declare const SAMPLING_ONBOARDING_BTN_START = "Start setup";
|
|
98
|
+
export declare const SAMPLING_ONBOARDING_BTN_NEXT = "Next";
|
|
99
|
+
export declare const SAMPLING_ONBOARDING_BTN_GO_TO = "Go to Sampling";
|
|
100
|
+
export declare const SAMPLING_ONBOARDING_BTN_READ_MORE = "Read more";
|
|
101
|
+
export declare const SAMPLING_ONBOARDING_WELCOME_TITLE = "Welcome to Sampling";
|
|
102
|
+
export declare const SAMPLING_ONBOARDING_WELCOME_SUBTITLE = "Cut costs without losing what matters";
|
|
103
|
+
export declare const SAMPLING_ONBOARDING_WELCOME_INTRO = "Odigos sampling works in three stages:";
|
|
104
|
+
export declare const SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE = "Filter noisy traffic";
|
|
105
|
+
export declare const SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC = "Remove non-actionable traces like health checks.";
|
|
106
|
+
export declare const SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE = "Guarantee highly relevance operations";
|
|
107
|
+
export declare const SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC = "Keep traces with errors, high latency, or mission-critical endpoints/services.";
|
|
108
|
+
export declare const SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE = "Reduce cost";
|
|
109
|
+
export declare const SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC = "Sample routine traffic using percentages.";
|
|
110
|
+
export declare const SAMPLING_ONBOARDING_WELCOME_BANNER = "Sampling does not drop individual spans - it keeps or drops the entire trace.";
|
|
111
|
+
export declare const SAMPLING_ONBOARDING_NOISY_TITLE = "Filter noisy operations";
|
|
112
|
+
export declare const SAMPLING_ONBOARDING_NOISY_SUBTITLE = "Cut traces with little or no observability value (health-checks, metric scarping, etc)";
|
|
113
|
+
export declare const SAMPLING_ONBOARDING_NOISY_DESCRIPTION = "Odigos filters these efficiently, dropping them early with almost no resource cost.\n\nSampling happens at request start, so only root span attributes available at that moment can be used. Later insights about the trace (errors, latency) - aren\u2019t available.";
|
|
114
|
+
export declare const SAMPLING_ONBOARDING_NOISY_PRESET_SECTION = "Preset Rules";
|
|
115
|
+
export declare const SAMPLING_ONBOARDING_NOISY_PRESET_NAME = "Kubernetes Health Probes";
|
|
116
|
+
export declare const SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL = "Automatically ignore health checks";
|
|
117
|
+
export declare const SAMPLING_ONBOARDING_NOISY_BANNER = "You can review, adjust, and add additional custom rules later.";
|
|
118
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_TITLE = "Choose your sampling strategy";
|
|
119
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_SUBTITLE = "Pick the approach that best fits your balance of cost vs data-completeness";
|
|
120
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME = "Keep List";
|
|
121
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE = "Budget Friendly";
|
|
122
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC = "Define which traces must be kept, while all others are sampled by default to minimize cost.";
|
|
123
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1 = "Cost-oriented - keeps only what you explicitly select.";
|
|
124
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2 = "Best for very large clusters with high volumes of traces and high costs.";
|
|
125
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING = "Higher risk of missing important traces without ongoing review.";
|
|
126
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_DROP_NAME = "Drop List";
|
|
127
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE = "Safe Choice";
|
|
128
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_DROP_DESC = "Define which traces must be aggressively dropped, while all others are kept by default.";
|
|
129
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1 = "Preserves most data unless explicitly filtered.";
|
|
130
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2 = "Safer by default - gaps in rules or system changes increase cost rather than risk losing important traces.";
|
|
131
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME = "Advanced";
|
|
132
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE = "Maximum Flexibility";
|
|
133
|
+
export declare const SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC = "Full control over all sampling rules and categories.\n\nBest for advanced users who want complete flexibility.";
|
|
134
|
+
export declare const SAMPLING_ONBOARDING_KEEP_TITLE = "'Keep List' profile";
|
|
135
|
+
export declare const SAMPLING_ONBOARDING_KEEP_SUBTITLE = "Protect important traces";
|
|
136
|
+
export declare const SAMPLING_ONBOARDING_KEEP_DESCRIPTION = "Start by setting the default sampling rate for all traces.\nThen define rules to exclude highly relevant traces so they are guaranteed to be kept\n\nCommon use-cases include:";
|
|
137
|
+
export declare const SAMPLING_ONBOARDING_KEEP_USE_CASE_1 = "Traces with errors";
|
|
138
|
+
export declare const SAMPLING_ONBOARDING_KEEP_USE_CASE_2 = "Slow requests (duration above threshold)";
|
|
139
|
+
export declare const SAMPLING_ONBOARDING_KEEP_USE_CASE_3 = "Mission-Critical endpoints or services";
|
|
140
|
+
export declare const SAMPLING_ONBOARDING_KEEP_USE_CASE_4 = "Services under test or evaluation";
|
|
141
|
+
export declare const SAMPLING_ONBOARDING_KEEP_USE_CASE_5 = "New deployments";
|
|
142
|
+
export declare const SAMPLING_ONBOARDING_COMMON_BANNER = "You can review, adjust, and add rules once onboarding is complete.";
|
|
143
|
+
export declare const SAMPLING_ONBOARDING_COMMON_RULES_SECTION = "Common Rules";
|
|
144
|
+
export declare const SAMPLING_ONBOARDING_PRESET_RULES_SECTION = "Preset Rules";
|
|
145
|
+
export declare const SAMPLING_ONBOARDING_ERROR_PRESET_NAME = "Error collection - entire cluster";
|
|
146
|
+
export declare const SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL = "Keep all traces with errors";
|
|
147
|
+
export declare const SAMPLING_ONBOARDING_AMBIENT_LABEL = "Ambient sampling percentage";
|
|
148
|
+
export declare const SAMPLING_ONBOARDING_DROP_TITLE = "'Drop List' profile";
|
|
149
|
+
export declare const SAMPLING_ONBOARDING_DROP_SUBTITLE = "Reduce high-volume traffic";
|
|
150
|
+
export declare const SAMPLING_ONBOARDING_DROP_DESCRIPTION = "Start by keeping all traces by default. Then define rules to drop high-volume or low-value traces to reduce overall volume and cost.\n\nIn many systems, a small number of endpoints generate most of the trace volume.\nTargeting these high-volume sources can significantly reduce overall data.";
|
|
151
|
+
export declare const SAMPLING_ONBOARDING_ADVANCED_TITLE = "Advanced Configuration";
|
|
152
|
+
export declare const SAMPLING_ONBOARDING_ADVANCED_SUBTITLE = "Configure sampling rules";
|
|
153
|
+
export declare const SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE = "Advanced mode allows you to configure all sampling categories:";
|
|
154
|
+
export declare const SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1 = "Noise Filtering - remove non-actionable traces";
|
|
155
|
+
export declare const SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2 = "Highly Relevance - guarantee important traces are kept";
|
|
156
|
+
export declare const SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3 = "Cost Control - drop traces for \"Normal\" operations";
|
|
157
|
+
export declare const SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE = "Rules can target:";
|
|
158
|
+
export declare const SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1 = "Services";
|
|
159
|
+
export declare const SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2 = "HTTP Endpoints";
|
|
160
|
+
export declare const SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3 = "DB Operations";
|
|
161
|
+
export declare const SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4 = "Errors";
|
|
162
|
+
export declare const SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5 = "Latency and more...";
|
|
163
|
+
export declare const SAMPLING_ONBOARDING_SUCCESS_TITLE = "Sampling configured successfully!";
|
|
164
|
+
export declare const SAMPLING_ONBOARDING_SUCCESS_SUBTITLE = "Your sampling configuration is ready.\nYou can add and adjust rules anytime in Sampling Rules space.";
|
|
165
|
+
export declare const SAMPLING_ONBOARDING_SUCCESS_INTRO = "Odigos will now:";
|
|
166
|
+
export declare const SAMPLING_ONBOARDING_SUCCESS_BULLET_1 = "Filter noisy operations";
|
|
167
|
+
export declare const SAMPLING_ONBOARDING_SUCCESS_BULLET_2 = "Guarantee important traces";
|
|
168
|
+
export declare const SAMPLING_ONBOARDING_SUCCESS_BULLET_3 = "Reduce cost using controlled sampling";
|
|
169
|
+
export declare const SAMPLING_ONBOARDING_RECOMMENDED_BADGE = "Recommended";
|
|
96
170
|
export declare const CATEGORY_DESCRIPTIONS: Record<SamplingRuleCategory, string>;
|
|
97
171
|
export declare const CATEGORY_TITLES: Record<SamplingRuleCategory, string>;
|
|
98
172
|
export declare const EDIT_TITLES: Record<SamplingRuleCategory, string>;
|
package/lib/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{cN as ACTION_ATTRIBUTE_OPTIONS,aB as ACTION_OPTIONS,cO as ACTION_SAMPLER_OPTIONS,h3 as ALL_SOURCES,d0 as BTN_CANCEL,e_ as BTN_CREATE_FIRST_RULE,d8 as BTN_CREATE_RULE,d3 as BTN_DELETE_RULE,g7 as BTN_EDIT_AUTO_RULE,d2 as BTN_EDIT_RULE,dg as BTN_SAVE,d1 as BTN_SAVE_RULE,e as BUTTON_TEXTS,d5 as CATEGORY_DESCRIPTIONS,g4 as CATEGORY_LABELS,d9 as CATEGORY_TITLES,h4 as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,h5 as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,h6 as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,cY as DEFAULT_CLUSTER_ID,cX as DEFAULT_CLUSTER_NAME,bw as DEFAULT_DATA_STREAM_NAME,cF as DESC_DROP_PERCENTAGE,fy as DESC_DURATION,fx as DESC_ERRORS,fS as DESC_KEEP_PERCENTAGE,fB as DESC_OPERATION,g5 as DESC_RULE_TYPE,gi as DESC_SOURCE_SCOPE,bJ as DESTINATION_CATEGORIES,bq as DISPLAY_LANGUAGES,z as DISPLAY_TITLES,ct as DOCS_BASE_URL,bI as DestinationCategoryTypes,dc as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,dd as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,da as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,db as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,de as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,df as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,d6 as EDIT_TITLES,fN as EMPTY_VALUE,eY as FILTER_TYPE_ALL,aI as FORM_ALERTS,bZ as INSTRUMENTATION_RULE_OPTIONS,fz as LABEL_CUSTOM_DURATION,cM as LABEL_CUSTOM_PERCENTAGE,cK as LABEL_DISABLED,eX as LABEL_DISABLED_RULE,fY as LABEL_DROP_ALL,cE as LABEL_DROP_AT_MOST,fU as LABEL_DROP_PERCENTAGE,cJ as LABEL_ENABLED,fG as LABEL_HTTP_ROUTE,fI as LABEL_HTTP_ROUTE_PREFIX,fK as LABEL_KAFKA_TOPIC,fZ as LABEL_KEEP_ALL,fV as LABEL_KEEP_AT_LEAST,fW as LABEL_KEEP_AT_MOST,fT as LABEL_KEEP_PERCENTAGE,fw as LABEL_KEEP_TRACES_DURATION,fu as LABEL_KEEP_TRACES_ERRORS,fJ as LABEL_METHOD,g0 as LABEL_NOTE,gf as LABEL_NO_PREVIEW,fM as LABEL_OPERATION_TYPE,h7 as LABEL_RULE_DISABLED,h8 as LABEL_RULE_ENABLED,f_ as LABEL_RULE_NAME,f$ as LABEL_RULE_TYPE,fX as LABEL_SAMPLE,fD as LABEL_SERVER_ADDRESS,fF as LABEL_TEMPLATED_PATH,fH as LABEL_TEMPLATED_PATH_PREFIX,h9 as LANGUAGE_OPTIONS,br as MONITORS_OPTIONS,gh as NOTE_ENTIRE_CLUSTER,gj as NOTE_SOURCE_SCOPE_LOGIC,ha as OPENTELEMETRY_EBPF_DISTRO_OPTION,fP as OPERATION_ALL,fO as OPERATION_HTTP_CLIENT,fL as OPERATION_HTTP_SERVER,fQ as OPERATION_KAFKA_CONSUMER,fR as OPERATION_KAFKA_PRODUCER,hb as OTEL_DISTRO_NAME_OPTIONS,g2 as PLACEHOLDER_NOTE,fE as PLACEHOLDER_ROUTE,g1 as PLACEHOLDER_RULE_NAME,gl as PLACEHOLDER_SEARCH_SOURCE,fC as PLACEHOLDER_SERVER_ADDRESS,cI as SAMPLING_AUTO_RULE_TITLE,fh as SAMPLING_BTN_CREATE_RULE,ff as SAMPLING_BTN_DOCS,fg as SAMPLING_BTN_REFRESH,cH as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,fn as SAMPLING_DELETE_MODAL_APPROVE,fo as SAMPLING_DELETE_MODAL_CANCEL,fp as SAMPLING_DELETE_MODAL_DESCRIPTION,fq as SAMPLING_DELETE_MODAL_TITLE,dh as SAMPLING_DRAWER_WIDTH,fe as SAMPLING_DUPLICATE_RULE_WARNING,cD as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,e8 as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,e9 as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,ea as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,eb as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,ec as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,ed as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,ee as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,ef as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,eg as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,eh as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,ej as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,ei as SAMPLING_ONBOARDING_ADVANCED_TITLE,eB as SAMPLING_ONBOARDING_AMBIENT_LABEL,dE as SAMPLING_ONBOARDING_BTN_GO_TO,dn as SAMPLING_ONBOARDING_BTN_NEXT,e7 as SAMPLING_ONBOARDING_BTN_READ_MORE,dP as SAMPLING_ONBOARDING_BTN_SKIP,dQ as SAMPLING_ONBOARDING_BTN_START,ek as SAMPLING_ONBOARDING_COMMON_BANNER,eA as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,eo as SAMPLING_ONBOARDING_DROP_DESCRIPTION,en as SAMPLING_ONBOARDING_DROP_SUBTITLE,em as SAMPLING_ONBOARDING_DROP_TITLE,er as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,eq as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,eu as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,et as SAMPLING_ONBOARDING_KEEP_SUBTITLE,es as SAMPLING_ONBOARDING_KEEP_TITLE,ev as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,ew as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,ex as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,ey as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,ez as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,dw as SAMPLING_ONBOARDING_NOISY_BANNER,ds as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,dv as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,dt as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,du as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,dr as SAMPLING_ONBOARDING_NOISY_SUBTITLE,dq as SAMPLING_ONBOARDING_NOISY_TITLE,ep as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,dl as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,e2 as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,e3 as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,e4 as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,d$ as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,dZ as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,d_ as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,e0 as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,e1 as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,dW as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,dU as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,dV as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,dX as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,dY as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,dT as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,dS as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,dR as SAMPLING_ONBOARDING_STRATEGY_TITLE,dB as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,dC as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,dD as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,dA as SAMPLING_ONBOARDING_SUCCESS_INTRO,dz as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,dy as SAMPLING_ONBOARDING_SUCCESS_TITLE,dO as SAMPLING_ONBOARDING_WELCOME_BANNER,dH as SAMPLING_ONBOARDING_WELCOME_INTRO,dI as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,dJ as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,dK as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,dL as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,dM as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,dN as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,dG as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,dF as SAMPLING_ONBOARDING_WELCOME_TITLE,fi as SAMPLING_PAGE_DESCRIPTION,fj as SAMPLING_PAGE_TITLE,cG as SECTION_DROP_PERCENTAGE,fv as SECTION_DURATION,ft as SECTION_ERRORS,hc as SECTION_KEEP_PERCENTAGE,fA as SECTION_OPERATION,ge as SECTION_SAMPLING_PREVIEW,gg as SECTION_SOURCE_SCOPE,bs as STORAGE_KEYS,eZ as TITLE_NO_RESULTS,e$ as TITLE_NO_RULES,hd as TOKEN_ABOUT_TO_EXPIRE,g3 as TOOLTIP_NOTE,d7 as UNNAMED_RULE,f0 as getNoResultsSubTitle}from"./chunks/ui-components-BogDd0Qc.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import { type DataStream } from '@/types';
|
|
3
3
|
export interface AddDataStreamModalProps {
|
|
4
|
+
isOpen: boolean;
|
|
4
5
|
onClose: () => void;
|
|
6
|
+
/**
|
|
7
|
+
* Fires after the modal's close animation has finished. The parent uses this to
|
|
8
|
+
* tear down the form-context provider so each open starts with a fresh form,
|
|
9
|
+
* without sacrificing the slide-out animation.
|
|
10
|
+
*/
|
|
11
|
+
onCloseEnd?: () => void;
|
|
5
12
|
/** When omitted, the modal just adds the new stream to the local store and selects it. */
|
|
6
13
|
createDataStream?: (dataStream: DataStream) => void | Promise<void>;
|
|
7
14
|
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import { type DataStream } from '@/types';
|
|
3
3
|
export interface EditDataStreamModalProps {
|
|
4
|
+
isOpen: boolean;
|
|
4
5
|
onClose: () => void;
|
|
6
|
+
/**
|
|
7
|
+
* Fires after the modal's close animation has finished. The parent uses this to
|
|
8
|
+
* tear down the form-context provider so each open starts with a fresh form,
|
|
9
|
+
* without sacrificing the slide-out animation.
|
|
10
|
+
*/
|
|
11
|
+
onCloseEnd?: () => void;
|
|
5
12
|
dataStreamName: string;
|
|
6
13
|
updateDataStream: (dataStreamName: string, dataStream: DataStream) => void | Promise<void>;
|
|
7
14
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const HeaderBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
$hasBack: boolean;
|
|
3
|
+
}>> & string;
|
|
4
|
+
export declare const BackArrow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const HeaderSpacer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const Body: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
|
+
$width: number;
|
|
8
|
+
}>> & string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type FC, type ReactNode } from 'react';
|
|
2
|
+
export interface OnboardingFooterProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
center?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* When provided, renders the standard "Next" button at the end of the footer.
|
|
7
|
+
* Most steps share this button — this lets each step skip duplicating it.
|
|
8
|
+
*/
|
|
9
|
+
onNext?: () => void;
|
|
10
|
+
nextLabel?: string;
|
|
11
|
+
nextLoading?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const OnboardingFooter: FC<OnboardingFooterProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties, type FC, type ReactNode } from 'react';
|
|
2
|
+
export declare const BulletList: FC<{
|
|
3
|
+
items: ReactNode[];
|
|
4
|
+
color?: CSSProperties['color'];
|
|
5
|
+
}>;
|
|
6
|
+
export declare const NumberedList: FC<{
|
|
7
|
+
items: {
|
|
8
|
+
title: ReactNode;
|
|
9
|
+
description: ReactNode;
|
|
10
|
+
}[];
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const SectionWithHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const SectionHeaderRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const SectionInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { SamplingOnboardingModalProps } from './types';
|
|
3
|
+
export type { SamplingOnboardingModalProps, SamplingStrategy, AmbientPercentage } from './types';
|
|
4
|
+
export declare const SamplingOnboardingModal: FC<SamplingOnboardingModalProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type ColoredSpanPart } from '@/snippets/_v2/colored-span';
|
|
3
|
+
export interface PresetRowProps {
|
|
4
|
+
/** Display name for the preset (e.g., "Kubernetes Health Probes") */
|
|
5
|
+
name: string;
|
|
6
|
+
/** Whether to show the "Recommended" badge */
|
|
7
|
+
recommended?: boolean;
|
|
8
|
+
/** Toggle label rendered next to the toggle */
|
|
9
|
+
toggleLabel: string;
|
|
10
|
+
/** Toggle value */
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
/** Toggle change handler */
|
|
13
|
+
onEnabledChange: (value: boolean) => void;
|
|
14
|
+
/** ColoredSpan summary parts shown below the title row */
|
|
15
|
+
summary: ColoredSpanPart[];
|
|
16
|
+
/** Optional override for the toggle data-id */
|
|
17
|
+
toggleName?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const PresetRow: FC<PresetRowProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
export interface StepDropListProps {
|
|
3
|
+
errorPresetEnabled: boolean;
|
|
4
|
+
onErrorPresetChange: (value: boolean) => void;
|
|
5
|
+
onBack: () => void;
|
|
6
|
+
onNext: () => void;
|
|
7
|
+
submitting?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const StepDropList: FC<StepDropListProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { AmbientPercentage } from '../types';
|
|
3
|
+
interface AmbientPercentageSelectorProps {
|
|
4
|
+
value: AmbientPercentage;
|
|
5
|
+
onChange: (value: AmbientPercentage) => void;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const AmbientPercentageSelector: FC<AmbientPercentageSelectorProps>;
|
|
9
|
+
export interface StepKeepListProps {
|
|
10
|
+
errorPresetEnabled: boolean;
|
|
11
|
+
onErrorPresetChange: (value: boolean) => void;
|
|
12
|
+
ambientPercentage: AmbientPercentage;
|
|
13
|
+
onAmbientPercentageChange: (value: AmbientPercentage) => void;
|
|
14
|
+
onBack: () => void;
|
|
15
|
+
onNext: () => void;
|
|
16
|
+
submitting?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const StepKeepList: FC<StepKeepListProps>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { SamplingStrategy } from '../types';
|
|
3
|
+
export interface StepStrategyProps {
|
|
4
|
+
strategy: SamplingStrategy;
|
|
5
|
+
onStrategyChange: (value: SamplingStrategy) => void;
|
|
6
|
+
onBack: () => void;
|
|
7
|
+
onNext: () => void;
|
|
8
|
+
docsUrl?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const StepStrategy: FC<StepStrategyProps>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { CostReductionRuleInput, HighlyRelevantOperationRuleInput, SamplingRulesK8sHealthConfig } from '@/types';
|
|
2
|
+
export type SamplingStrategy = 'keep-list' | 'drop-list' | 'advanced';
|
|
3
|
+
export type AmbientPercentage = '50' | '25' | '10' | '1' | '0.1';
|
|
4
|
+
export interface SamplingOnboardingState {
|
|
5
|
+
noisyAutoEnabled: boolean;
|
|
6
|
+
strategy: SamplingStrategy;
|
|
7
|
+
errorPresetEnabled: boolean;
|
|
8
|
+
ambientPercentage: AmbientPercentage;
|
|
9
|
+
}
|
|
10
|
+
export interface SamplingOnboardingModalProps {
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
/**
|
|
14
|
+
* Existing K8s health probes config; used to seed the noisy preset toggle.
|
|
15
|
+
*/
|
|
16
|
+
k8sHealthProbesConfig: SamplingRulesK8sHealthConfig | null;
|
|
17
|
+
/**
|
|
18
|
+
* Sampling group id to use when creating preset rules. Falls back to
|
|
19
|
+
* 'default' when omitted.
|
|
20
|
+
*/
|
|
21
|
+
samplingId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Optional documentation URL that "Read more" buttons in step 3 link to.
|
|
24
|
+
*/
|
|
25
|
+
docsUrl?: string;
|
|
26
|
+
updateK8sHealthProbesConfig: (enabled: boolean, keepPercentage: number) => Promise<void> | void;
|
|
27
|
+
createHighlyRelevantOperationRule: (samplingId: string, rule: HighlyRelevantOperationRuleInput) => Promise<void> | void;
|
|
28
|
+
createCostReductionRule: (samplingId: string, rule: CostReductionRuleInput) => Promise<void> | void;
|
|
29
|
+
}
|
|
@@ -19,13 +19,13 @@ export interface SamplingRulesProps {
|
|
|
19
19
|
loading: boolean;
|
|
20
20
|
tableRowsMaxHeight: CSSProperties['maxHeight'];
|
|
21
21
|
fetchSamplingRules: () => void;
|
|
22
|
-
createNoisyOperationRule: (samplingId: string, rule: NoisyOperationRuleInput) => void;
|
|
23
|
-
updateNoisyOperationRule: (samplingId: string, ruleId: string, rule: NoisyOperationRuleInput) => void;
|
|
24
|
-
createHighlyRelevantOperationRule: (samplingId: string, rule: HighlyRelevantOperationRuleInput) => void;
|
|
25
|
-
updateHighlyRelevantOperationRule: (samplingId: string, ruleId: string, rule: HighlyRelevantOperationRuleInput) => void;
|
|
26
|
-
createCostReductionRule: (samplingId: string, rule: CostReductionRuleInput) => void;
|
|
27
|
-
updateCostReductionRule: (samplingId: string, ruleId: string, rule: CostReductionRuleInput) => void;
|
|
28
|
-
deleteSamplingRule: (samplingId: string, ruleId: string, category: SamplingRuleCategory) => void;
|
|
29
|
-
updateK8sHealthProbesConfig: (enabled: boolean, keepPercentage: number) => void;
|
|
22
|
+
createNoisyOperationRule: (samplingId: string, rule: NoisyOperationRuleInput) => Promise<void> | void;
|
|
23
|
+
updateNoisyOperationRule: (samplingId: string, ruleId: string, rule: NoisyOperationRuleInput) => Promise<void> | void;
|
|
24
|
+
createHighlyRelevantOperationRule: (samplingId: string, rule: HighlyRelevantOperationRuleInput) => Promise<void> | void;
|
|
25
|
+
updateHighlyRelevantOperationRule: (samplingId: string, ruleId: string, rule: HighlyRelevantOperationRuleInput) => Promise<void> | void;
|
|
26
|
+
createCostReductionRule: (samplingId: string, rule: CostReductionRuleInput) => Promise<void> | void;
|
|
27
|
+
updateCostReductionRule: (samplingId: string, ruleId: string, rule: CostReductionRuleInput) => Promise<void> | void;
|
|
28
|
+
deleteSamplingRule: (samplingId: string, ruleId: string, category: SamplingRuleCategory) => Promise<void> | void;
|
|
29
|
+
updateK8sHealthProbesConfig: (enabled: boolean, keepPercentage: number) => Promise<void> | void;
|
|
30
30
|
docsUrl?: string;
|
|
31
31
|
}
|