@odigos/ui-kit 0.0.217 → 0.0.219
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 +20 -0
- package/lib/chunks/{index-eGTPcqRB.js → index-YIqbBRyO.js} +1 -1
- package/lib/chunks/ui-components-Dj10kYlT.js +2469 -0
- package/lib/components/_v2/autocomplete/index.d.ts +1 -0
- package/lib/components/_v2/button/index.d.ts +2 -0
- package/lib/components/_v2/cards/section-card/index.d.ts +1 -1
- package/lib/components/_v2/drawer/footer/index.d.ts +9 -0
- package/lib/components/_v2/drawer/index.d.ts +2 -0
- package/lib/components/_v2/hover-actions/index.d.ts +2 -0
- package/lib/components/_v2/note/index.d.ts +1 -0
- package/lib/components/_v2/radio/index.d.ts +1 -0
- package/lib/components/_v2/search/index.d.ts +6 -1
- package/lib/components/_v2/segment/index.d.ts +2 -1
- package/lib/components/_v2/table/index.d.ts +3 -1
- package/lib/components/_v2/table/styled.d.ts +2 -0
- package/lib/components/_v2/table/table-rows/index.d.ts +2 -1
- package/lib/components/_v2/table/types.d.ts +2 -0
- package/lib/components/styled.d.ts +3 -0
- package/lib/components/tooltip/index.d.ts +7 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/sampling/index.d.ts +87 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/index.d.ts +18 -4
- package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/index.d.ts +7 -2
- package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/index.d.ts +7 -2
- package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/index.d.ts +6 -2
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/index.d.ts +2 -4
- package/lib/containers/_v2/_forms/create-sampling-rule-form/context.d.ts +34 -0
- package/lib/containers/_v2/_forms/create-sampling-rule-form/index.d.ts +3 -0
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/duration-errors.d.ts +1 -1
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/operation.d.ts +1 -1
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/percentage.d.ts +1 -1
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/rule-info.d.ts +1 -1
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/sampling-preview.d.ts +1 -1
- package/lib/containers/_v2/_forms/create-sampling-rule-form/styled.d.ts +5 -0
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/types.d.ts +1 -1
- package/lib/containers/_v2/_forms/edit-auto-rule-form/context.d.ts +21 -0
- package/lib/containers/_v2/_forms/edit-auto-rule-form/index.d.ts +3 -0
- package/lib/containers/_v2/_forms/edit-cost-reduction-auto-rule-form/context.d.ts +21 -0
- package/lib/containers/_v2/_forms/edit-cost-reduction-auto-rule-form/index.d.ts +3 -0
- package/lib/containers/_v2/_forms/edit-highly-relevant-auto-rule-form/context.d.ts +14 -0
- package/lib/containers/_v2/_forms/edit-highly-relevant-auto-rule-form/index.d.ts +3 -0
- package/lib/containers/_v2/_forms/index.d.ts +5 -0
- package/lib/containers/_v2/_forms/view-sampling-rule-form/context.d.ts +37 -0
- package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/footer.d.ts +3 -3
- package/lib/containers/_v2/_forms/view-sampling-rule-form/index.d.ts +3 -0
- package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/reverse-converters.d.ts +2 -2
- package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/operation-details.d.ts +1 -1
- package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/percentage.d.ts +1 -1
- package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/rule-info.d.ts +1 -1
- package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/sampling-preview.d.ts +2 -2
- package/lib/containers/_v2/index.d.ts +1 -2
- package/lib/containers/_v2/sampling-rules/auto-rule-card/index.d.ts +8 -0
- package/lib/containers/_v2/{sampling-rules-list → sampling-rules}/helpers.d.ts +23 -5
- package/lib/containers/_v2/sampling-rules/index.d.ts +3 -0
- package/lib/containers/_v2/sampling-rules/rules-table/index.d.ts +13 -0
- package/lib/containers/_v2/{sampling-rules-list/toolbar.d.ts → sampling-rules/toolbar/index.d.ts} +1 -1
- package/lib/containers/_v2/sampling-rules/types.d.ts +72 -0
- package/lib/containers/source-drawer/index.d.ts +5 -0
- package/lib/containers/source-drawer/profiling/flame-graph-canvas.d.ts +10 -0
- package/lib/containers/source-drawer/profiling/flamebearer.d.ts +70 -0
- package/lib/containers/source-drawer/profiling/index.d.ts +34 -0
- package/lib/containers/source-drawer/profiling/symbol-table.d.ts +6 -0
- package/lib/containers/v2.js +148 -341
- package/lib/containers.js +168 -120
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks/usePopup.d.ts +17 -1
- package/lib/hooks.js +1 -1
- package/lib/mock-data/index.d.ts +1 -0
- package/lib/mock-data/profiling/index.d.ts +10 -0
- package/lib/mock-data/service-map/index.d.ts +3 -1
- package/lib/snippets/_v2/colored-span/index.d.ts +16 -0
- package/lib/snippets/_v2/index.d.ts +1 -0
- package/lib/snippets/_v2/rich-title/index.d.ts +2 -2
- package/lib/snippets/v2.js +15 -17
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +13 -13
- package/lib/chunks/ui-components-DaRAAytB.js +0 -2422
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/constants.d.ts +0 -26
- package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/constants.d.ts +0 -10
- package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/types.d.ts +0 -8
- package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/constants.d.ts +0 -10
- package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/types.d.ts +0 -8
- package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/constants.d.ts +0 -6
- package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/types.d.ts +0 -6
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/constants.d.ts +0 -19
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/styled.d.ts +0 -4
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/types.d.ts +0 -1
- package/lib/containers/_v2/auto-rule-card/constants.d.ts +0 -1
- package/lib/containers/_v2/auto-rule-card/helpers.d.ts +0 -19
- package/lib/containers/_v2/auto-rule-card/index.d.ts +0 -5
- package/lib/containers/_v2/auto-rule-card/types.d.ts +0 -6
- package/lib/containers/_v2/sampling-rules-list/constants.d.ts +0 -23
- package/lib/containers/_v2/sampling-rules-list/index.d.ts +0 -6
- package/lib/containers/_v2/sampling-rules-list/rule-row.d.ts +0 -12
- package/lib/containers/_v2/sampling-rules-list/summary-span.d.ts +0 -10
- package/lib/containers/_v2/sampling-rules-list/types.d.ts +0 -47
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/converters.d.ts +0 -0
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/form-helpers.d.ts +0 -0
- package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/source-scope.d.ts +1 -1
- /package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/duration-errors.d.ts +0 -0
- /package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/source-scopes.d.ts +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { SamplingRuleCategory } from '../../sampling-rules-list/types';
|
|
2
|
-
export { BTN_CANCEL, SECTION_SAMPLING_PREVIEW, SECTION_SOURCE_SCOPE, SECTION_OPERATION, SECTION_DURATION, SECTION_ERRORS, LABEL_RULE_NAME, LABEL_RULE_TYPE, LABEL_NOTE, LABEL_HTTP_ROUTE, LABEL_METHOD, LABEL_KEEP_PERCENTAGE, LABEL_DROP_PERCENTAGE, LABEL_KEEP_TRACES_DURATION, LABEL_KEEP_TRACES_ERRORS, LABEL_KEEP_AT_LEAST, LABEL_KEEP_AT_MOST, CATEGORY_DESCRIPTIONS, } from '../../sampling-rules-list/constants';
|
|
3
|
-
export declare const SAMPLING_DRAWER_WIDTH = "60vw";
|
|
4
|
-
export declare const LABEL_HTTP_ROUTE_PREFIX = "HTTP route prefix";
|
|
5
|
-
export declare const LABEL_TEMPLATED_PATH = "Templated path";
|
|
6
|
-
export declare const LABEL_TEMPLATED_PATH_PREFIX = "Templated path prefix";
|
|
7
|
-
export declare const LABEL_KAFKA_TOPIC = "Kafka topic";
|
|
8
|
-
export declare const LABEL_CUSTOM_DURATION = "Custom duration (ms)";
|
|
9
|
-
export declare const LABEL_CUSTOM_PERCENTAGE = "Custom percentage";
|
|
10
|
-
export declare const LABEL_NO_PREVIEW = "No preview available";
|
|
11
|
-
export declare const LABEL_SERVER_ADDRESS = "Server address";
|
|
12
|
-
export declare const PLACEHOLDER_SERVER_ADDRESS = "e.g. collector.my.vendor.com";
|
|
13
|
-
export declare const PLACEHOLDER_RULE_NAME = "Type rule name";
|
|
14
|
-
export declare const PLACEHOLDER_NOTE = "Add note here...";
|
|
15
|
-
export declare const TOOLTIP_NOTE = "Optional notes (not used by the system). Add any context or details for this sampling rule.";
|
|
16
|
-
export declare const PLACEHOLDER_ROUTE = "Type here";
|
|
17
|
-
export declare const PLACEHOLDER_SEARCH_SOURCE = "Search source name";
|
|
18
|
-
export declare const NOTE_ENTIRE_CLUSTER = "Rule will apply to all sources in the cluster";
|
|
19
|
-
export declare const BTN_CREATE_RULE = "Create rule";
|
|
20
|
-
export declare const DESC_SOURCE_SCOPE = "Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.";
|
|
21
|
-
export declare const DESC_OPERATION = "Define which operations this rule applies to. You can target specific endpoints or requests, or apply the rule to all operations in the selected services.";
|
|
22
|
-
export declare const DESC_DURATION = "Define a duration threshold for this rule. Traces with a duration longer than the specified value will be considered important and retained.";
|
|
23
|
-
export declare const DESC_ERRORS = "Retain traces with errors from the selected services and operations.";
|
|
24
|
-
export declare const DESC_KEEP_PERCENTAGE = "Specify the exact percentage of matching traces to keep";
|
|
25
|
-
export declare const DESC_DROP_PERCENTAGE = "Specify the exact percentage of matching traces to drop";
|
|
26
|
-
export declare const CATEGORY_TITLES: Record<SamplingRuleCategory, string>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const DRAWER_TITLE = "Edit 'Noisy Operation' auto rule";
|
|
2
|
-
export declare const DRAWER_SUBTITLE = "Automatically detect and sample health probe traces across the cluster.";
|
|
3
|
-
export declare const SECTION_TITLE = "Auto rule - Kubernetes Health Probes";
|
|
4
|
-
export declare const LABEL_RULE_ENABLED = "Rule Enabled";
|
|
5
|
-
export declare const SECTION_KEEP_PERCENTAGE = "Keep Percentage";
|
|
6
|
-
export declare const DESC_KEEP_PERCENTAGE = "Specify the exact percentage of matching traces to keep";
|
|
7
|
-
export declare const LABEL_KEEP_AT_LEAST = "Keep at least this percentage of matching traces";
|
|
8
|
-
export declare const LABEL_CUSTOM_PERCENTAGE = "Custom percentage";
|
|
9
|
-
export declare const BTN_CANCEL = "Cancel";
|
|
10
|
-
export declare const BTN_SAVE = "Save";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type PercentagePreset = '50' | '25' | '10' | '1' | 'custom';
|
|
2
|
-
export interface EditAutoRuleDrawerProps {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
enabled: boolean;
|
|
5
|
-
keepPercentage: number;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
onSave: (enabled: boolean, keepPercentage: number) => void;
|
|
8
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const DRAWER_TITLE = "Edit 'Cost Reduction' auto rule";
|
|
2
|
-
export declare const DRAWER_SUBTITLE = "Automatically drop a percentage of traces across the entire cluster.";
|
|
3
|
-
export declare const SECTION_TITLE = "Auto rule - Drop Traces Cluster-Wide";
|
|
4
|
-
export declare const LABEL_RULE_ENABLED = "Rule Enabled";
|
|
5
|
-
export declare const SECTION_DROP_PERCENTAGE = "Drop Percentage";
|
|
6
|
-
export declare const DESC_DROP_PERCENTAGE = "Specify the exact percentage of matching traces to drop";
|
|
7
|
-
export declare const LABEL_DROP_AT_MOST = "Drop at most this percentage of matching traces";
|
|
8
|
-
export declare const LABEL_CUSTOM_PERCENTAGE = "Custom percentage";
|
|
9
|
-
export declare const BTN_CANCEL = "Cancel";
|
|
10
|
-
export declare const BTN_SAVE = "Save";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type PercentagePreset = '50' | '25' | '10' | '1' | 'custom';
|
|
2
|
-
export interface EditCostReductionAutoRuleDrawerProps {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
enabled: boolean;
|
|
5
|
-
dropPercentage: number;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
onSave: (enabled: boolean, dropPercentage: number) => void;
|
|
8
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const DRAWER_TITLE = "Edit 'Highly Relevant' auto rule";
|
|
2
|
-
export declare const DRAWER_SUBTITLE = "Automatically keep all error traces across the entire cluster.";
|
|
3
|
-
export declare const SECTION_TITLE = "Auto rule - Keep All Error Traces";
|
|
4
|
-
export declare const LABEL_RULE_ENABLED = "Rule Enabled";
|
|
5
|
-
export declare const BTN_CANCEL = "Cancel";
|
|
6
|
-
export declare const BTN_SAVE = "Save";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ViewRuleData } from './types';
|
|
2
|
-
export { SAMPLING_DRAWER_WIDTH } from '../create-sampling-rule-drawer/constants';
|
|
3
|
-
export { UNNAMED_RULE, LABEL_DISABLED_RULE, BTN_EDIT_RULE, BTN_CANCEL, SECTION_SAMPLING_PREVIEW, SECTION_SOURCE_SCOPE, SECTION_OPERATION, SECTION_DURATION, SECTION_ERRORS, LABEL_RULE_NAME, LABEL_RULE_TYPE, LABEL_NOTE, LABEL_HTTP_ROUTE, LABEL_METHOD, LABEL_KEEP_PERCENTAGE, LABEL_DROP_PERCENTAGE, LABEL_KEEP_TRACES_DURATION, LABEL_KEEP_TRACES_ERRORS, LABEL_KEEP_AT_LEAST, LABEL_KEEP_AT_MOST, CATEGORY_DESCRIPTIONS, } from '../../sampling-rules-list/constants';
|
|
4
|
-
export declare const ALL_SOURCES = "All sources";
|
|
5
|
-
export declare const EMPTY_VALUE = "-";
|
|
6
|
-
export declare const LABEL_RULE_ENABLED = "Rule Enabled";
|
|
7
|
-
export declare const LABEL_OPERATION_TYPE = "Operation type";
|
|
8
|
-
export declare const LABEL_SAMPLE = "Sample";
|
|
9
|
-
export declare const LABEL_KEEP_ALL = "Keep all";
|
|
10
|
-
export declare const LABEL_DROP_ALL = "Drop all";
|
|
11
|
-
export declare const BTN_DELETE_RULE = "Delete rule";
|
|
12
|
-
export declare const BTN_SAVE_RULE = "Save";
|
|
13
|
-
export declare const EDIT_TITLES: Record<ViewRuleData['category'], string>;
|
|
14
|
-
export declare const OPERATION_ALL = "All operations";
|
|
15
|
-
export declare const OPERATION_HTTP_SERVER = "HTTP server endpoint";
|
|
16
|
-
export declare const OPERATION_HTTP_CLIENT = "HTTP client endpoint";
|
|
17
|
-
export declare const OPERATION_KAFKA_CONSUMER = "Kafka consumer";
|
|
18
|
-
export declare const OPERATION_KAFKA_PRODUCER = "Kafka producer";
|
|
19
|
-
export declare const CATEGORY_LABELS: Record<ViewRuleData['category'], string>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const SectionCard: 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 FlexSectionCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, never>> & string;
|
|
3
|
-
export declare const CellsRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
-
export declare const Cell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { ViewRuleData } from '../../sampling-rules-list/types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const BTN_EDIT_AUTO_RULE = "Edit auto rule";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { HighlyRelevantOperationRule, CostReductionRule, SamplingRules } from '@/types';
|
|
2
|
-
import type { SummaryPart } from '../sampling-rules-list/types';
|
|
3
|
-
export interface K8sHealthProbesConfig {
|
|
4
|
-
enabled: boolean | null;
|
|
5
|
-
keepPercentage: number | null;
|
|
6
|
-
}
|
|
7
|
-
export declare function buildAutoRuleSummary(config: K8sHealthProbesConfig | null): SummaryPart[];
|
|
8
|
-
export interface HighlyRelevantAutoRuleMatch {
|
|
9
|
-
rule: HighlyRelevantOperationRule;
|
|
10
|
-
samplingId: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function findHighlyRelevantAutoRule(groups: SamplingRules[]): HighlyRelevantAutoRuleMatch | null;
|
|
13
|
-
export declare function buildHighlyRelevantAutoRuleSummary(rule: HighlyRelevantOperationRule | null): SummaryPart[];
|
|
14
|
-
export interface CostReductionAutoRuleMatch {
|
|
15
|
-
rule: CostReductionRule;
|
|
16
|
-
samplingId: string;
|
|
17
|
-
}
|
|
18
|
-
export declare function findCostReductionAutoRule(groups: SamplingRules[]): CostReductionAutoRuleMatch | null;
|
|
19
|
-
export declare function buildCostReductionAutoRuleSummary(rule: CostReductionRule | null): SummaryPart[];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type { AutoRuleCardProps } from './types';
|
|
3
|
-
export type { AutoRuleCardProps } from './types';
|
|
4
|
-
export { buildAutoRuleSummary, type K8sHealthProbesConfig, findHighlyRelevantAutoRule, buildHighlyRelevantAutoRuleSummary, type HighlyRelevantAutoRuleMatch, findCostReductionAutoRule, buildCostReductionAutoRuleSummary, type CostReductionAutoRuleMatch, } from './helpers';
|
|
5
|
-
export declare const AutoRuleCard: FC<AutoRuleCardProps>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { SamplingRuleCategory } from './types';
|
|
2
|
-
export declare const UNNAMED_RULE = "Unnamed rule";
|
|
3
|
-
export declare const LABEL_DISABLED_RULE = "Disabled rule";
|
|
4
|
-
export declare const BTN_EDIT_RULE = "Edit rule";
|
|
5
|
-
export declare const BTN_CANCEL = "Cancel";
|
|
6
|
-
export declare const SECTION_SAMPLING_PREVIEW = "Sampling Preview";
|
|
7
|
-
export declare const SECTION_SOURCE_SCOPE = "Source Scope";
|
|
8
|
-
export declare const SECTION_OPERATION = "Operation";
|
|
9
|
-
export declare const SECTION_DURATION = "Duration";
|
|
10
|
-
export declare const SECTION_ERRORS = "Errors";
|
|
11
|
-
export declare const LABEL_RULE_NAME = "Rule name";
|
|
12
|
-
export declare const LABEL_RULE_TYPE = "Rule type";
|
|
13
|
-
export declare const LABEL_NOTE = "Note";
|
|
14
|
-
export declare const LABEL_HTTP_ROUTE = "HTTP route";
|
|
15
|
-
export declare const LABEL_METHOD = "Method";
|
|
16
|
-
export declare const LABEL_KEEP_PERCENTAGE = "Keep Percentage";
|
|
17
|
-
export declare const LABEL_DROP_PERCENTAGE = "Drop Percentage";
|
|
18
|
-
export declare const LABEL_KEEP_TRACES_DURATION = "Keep traces with duration larger than";
|
|
19
|
-
export declare const LABEL_KEEP_TRACES_ERRORS = "Keep traces with errors";
|
|
20
|
-
export declare const LABEL_KEEP_AT_LEAST = "Keep at least this percentage of matching traces";
|
|
21
|
-
export declare const LABEL_KEEP_AT_MOST = "Keep at most this percentage of matching traces";
|
|
22
|
-
export declare const FILTER_TYPE_ALL = "All";
|
|
23
|
-
export declare const CATEGORY_DESCRIPTIONS: Record<SamplingRuleCategory, string>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type { SamplingRulesListProps } from './types';
|
|
3
|
-
export type { SamplingRuleItem, SamplingRuleCategory, SamplingRulesListProps, SummaryPart, SummaryPartVariant, HighlyRelevantBadgeType, ViewRuleData, TypeFilter } from './types';
|
|
4
|
-
export type { DuplicateCheckInput } from './helpers';
|
|
5
|
-
export { SamplingCategory, SAMPLING_SEGMENT_OPTIONS, SAMPLING_CATEGORY_NOTES, SAMPLING_CATEGORY_LIST_TITLES, CATEGORY_TO_RULE_CATEGORY, buildNoisySummary, buildHighlyRelevantSummary, buildCostReductionSummary, getHighlyRelevantTypeBadge, buildSummaryForRule, buildSamplingRuleItems, refreshViewRuleData, lookupViewRuleData, findDuplicateRuleId, } from './helpers';
|
|
6
|
-
export declare const SamplingRulesList: FC<SamplingRulesListProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type { SamplingRuleItem } from './types';
|
|
3
|
-
export interface RuleRowProps {
|
|
4
|
-
item: SamplingRuleItem;
|
|
5
|
-
isHovered: boolean;
|
|
6
|
-
onClick: (item: SamplingRuleItem) => void;
|
|
7
|
-
onEdit: (ruleId: string, samplingId: string) => void;
|
|
8
|
-
onDelete: (ruleId: string, samplingId: string) => void;
|
|
9
|
-
onMouseEnter: () => void;
|
|
10
|
-
onMouseLeave: () => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const RuleRow: FC<RuleRowProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { type FC } from 'react';
|
|
2
|
-
import type { SummaryPart, SummaryPartVariant } from './types';
|
|
3
|
-
export declare const MONO_VARIANTS: SummaryPartVariant[];
|
|
4
|
-
export declare const SummarySpan: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
5
|
-
$variant: SummaryPartVariant;
|
|
6
|
-
$isMono: boolean;
|
|
7
|
-
}>> & string;
|
|
8
|
-
export declare const SummaryParts: FC<{
|
|
9
|
-
parts: SummaryPart[];
|
|
10
|
-
}>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { NoisyOperationRule, HighlyRelevantOperationRule, CostReductionRule } from '@/types';
|
|
2
|
-
export type SamplingRuleCategory = 'noisy' | 'highlyRelevant' | 'costReduction';
|
|
3
|
-
export type SummaryPartVariant = 'default' | 'action' | 'endpoint' | 'scope' | 'duration';
|
|
4
|
-
export interface SummaryPart {
|
|
5
|
-
text: string;
|
|
6
|
-
variant: SummaryPartVariant;
|
|
7
|
-
}
|
|
8
|
-
export type HighlyRelevantBadgeType = 'Relevance' | 'Duration' | 'Error';
|
|
9
|
-
export interface SamplingRuleItem {
|
|
10
|
-
ruleId: string;
|
|
11
|
-
samplingId: string;
|
|
12
|
-
name: string | null;
|
|
13
|
-
disabled: boolean;
|
|
14
|
-
notes: string | null;
|
|
15
|
-
summary: SummaryPart[];
|
|
16
|
-
category: SamplingRuleCategory;
|
|
17
|
-
typeBadge?: HighlyRelevantBadgeType;
|
|
18
|
-
}
|
|
19
|
-
export type TypeFilter = 'all' | HighlyRelevantBadgeType;
|
|
20
|
-
export interface SamplingRulesListProps {
|
|
21
|
-
title: string;
|
|
22
|
-
titleTooltip?: string;
|
|
23
|
-
items: SamplingRuleItem[];
|
|
24
|
-
isLoading?: boolean;
|
|
25
|
-
showTypeFilter?: boolean;
|
|
26
|
-
onRuleClick: (item: SamplingRuleItem) => void;
|
|
27
|
-
onEditRule: (ruleId: string, samplingId: string) => void;
|
|
28
|
-
onDeleteRule: (ruleId: string, samplingId: string) => void;
|
|
29
|
-
}
|
|
30
|
-
interface BaseViewRule {
|
|
31
|
-
samplingId: string;
|
|
32
|
-
summary: SummaryPart[];
|
|
33
|
-
}
|
|
34
|
-
interface ViewNoisyRule extends BaseViewRule {
|
|
35
|
-
category: Extract<SamplingRuleCategory, 'noisy'>;
|
|
36
|
-
rule: NoisyOperationRule;
|
|
37
|
-
}
|
|
38
|
-
interface ViewHighlyRelevantRule extends BaseViewRule {
|
|
39
|
-
category: Extract<SamplingRuleCategory, 'highlyRelevant'>;
|
|
40
|
-
rule: HighlyRelevantOperationRule;
|
|
41
|
-
}
|
|
42
|
-
interface ViewCostReductionRule extends BaseViewRule {
|
|
43
|
-
category: Extract<SamplingRuleCategory, 'costReduction'>;
|
|
44
|
-
rule: CostReductionRule;
|
|
45
|
-
}
|
|
46
|
-
export type ViewRuleData = ViewNoisyRule | ViewHighlyRelevantRule | ViewCostReductionRule;
|
|
47
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import { type AutocompleteOption } from '@/components/_v2';
|
|
3
2
|
import type { SamplingRuleFormState } from '../types';
|
|
3
|
+
import { type AutocompleteOption } from '@/components/_v2';
|
|
4
4
|
export interface FormSourceScopeProps {
|
|
5
5
|
formState: SamplingRuleFormState;
|
|
6
6
|
onChange: (updates: Partial<SamplingRuleFormState>) => void;
|
|
File without changes
|