@odigos/ui-kit 0.0.30 → 0.0.32
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/components.js +9 -12
- package/lib/constants.js +3 -6
- package/lib/containers/instrumentation-rule-form/custom-fields/headers-collection.d.ts +5 -0
- package/lib/containers.js +38 -23
- package/lib/functions.js +6 -8
- package/lib/hooks/useInstrumentationRuleFormData.d.ts +1 -1
- package/lib/hooks.js +4 -7
- package/lib/icons/instrumentation-rules/headers-collection-icon/headers-collection-icon.stories.d.ts +8 -0
- package/lib/icons/instrumentation-rules/headers-collection-icon/index.d.ts +2 -0
- package/lib/icons/instrumentation-rules/index.d.ts +1 -0
- package/lib/icons.js +7 -8
- package/lib/{index-CWbxXTof.js → index-B3j_QWzh.js} +1 -1
- package/lib/index-B9cvsYnj.js +100 -0
- package/lib/{index-nltUpkWT.js → index-BxckQJom.js} +6 -8
- package/lib/{index-CJs4RDHU.js → index-C7YDojNh.js} +2 -3
- package/lib/{index-BJxaoI0G.js → index-DAbcw-wM.js} +1 -1
- package/lib/{index-CamnKrev.js → index-DR5ryS5d.js} +1 -1
- package/lib/{index-B46Mcu9H.js → index-DeD-SIlN.js} +5 -6
- package/lib/{index-IKusBlIE.js → index-DuSmjoDs.js} +1 -1
- package/lib/{index-BbbCCewR.js → index-PfG5pvFK.js} +1 -1
- package/lib/{index-DYNMhZMX.js → index-cG2lNgzz.js} +6 -6
- package/lib/index-ivnS3eWW.js +1178 -0
- package/lib/{index-BGK1nMOD.js → index-rbphz5kH.js} +2 -2
- package/lib/snippets.js +9 -12
- package/lib/store.js +2 -2
- package/lib/theme.js +3 -233
- package/lib/types/instrumentation-rules/index.d.ts +26 -18
- package/lib/types.js +15 -9
- package/lib/{useSourceSelectionFormData-BWz8fTJr.js → useSourceSelectionFormData-A5_zhn1C.js} +3 -3
- package/lib/{useTransition-B65KBqdK.js → useTransition-9tDdAS9s.js} +1 -2
- package/package.json +1 -1
- package/lib/index-CFnxjzaW.js +0 -37
- package/lib/index-DGel4E-Z.js +0 -67
- package/lib/index-DGuOxbBR.js +0 -227
- package/lib/index-DMXaEyAB.js +0 -720
package/lib/index-DGuOxbBR.js
DELETED
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
import { SignalType, ActionType, InstrumentationRuleType } from './types.js';
|
|
2
|
-
import { g as getActionIcon, a as getInstrumentationRuleIcon } from './index-CFnxjzaW.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './index-DMXaEyAB.js';
|
|
5
|
-
import 'styled-components';
|
|
6
|
-
|
|
7
|
-
const ACTION_OPTIONS = [
|
|
8
|
-
{
|
|
9
|
-
label: 'Attributes',
|
|
10
|
-
icon: getActionIcon('attributes'),
|
|
11
|
-
items: [
|
|
12
|
-
{
|
|
13
|
-
type: ActionType.K8sAttributes,
|
|
14
|
-
icon: getActionIcon(ActionType.K8sAttributes),
|
|
15
|
-
label: 'Kubernetes Attributes',
|
|
16
|
-
description: 'Add dynamic k8s resource attributes to your data.',
|
|
17
|
-
allowedSignals: [SignalType.Traces, SignalType.Metrics, SignalType.Logs],
|
|
18
|
-
docsEndpoint: '/pipeline/actions/attributes/k8sattributes',
|
|
19
|
-
docsDescription: 'This action adds kubernetes related resource attributes to spans, metrics data points and log records.',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
type: ActionType.AddClusterInfo,
|
|
23
|
-
icon: getActionIcon(ActionType.AddClusterInfo),
|
|
24
|
-
label: 'Add Cluster Info',
|
|
25
|
-
description: 'Add static cluster-scoped attributes to your data.',
|
|
26
|
-
allowedSignals: [SignalType.Traces, SignalType.Metrics, SignalType.Logs],
|
|
27
|
-
docsEndpoint: '/pipeline/actions/attributes/addclusterinfo',
|
|
28
|
-
docsDescription: 'This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals.',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
type: ActionType.DeleteAttributes,
|
|
32
|
-
icon: getActionIcon(ActionType.DeleteAttributes),
|
|
33
|
-
label: 'Delete Attribute',
|
|
34
|
-
description: 'Delete attributes from logs, metrics, and traces.',
|
|
35
|
-
allowedSignals: [SignalType.Traces, SignalType.Metrics, SignalType.Logs],
|
|
36
|
-
docsEndpoint: '/pipeline/actions/attributes/deleteattribute',
|
|
37
|
-
docsDescription: 'This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition.',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
type: ActionType.RenameAttributes,
|
|
41
|
-
icon: getActionIcon(ActionType.RenameAttributes),
|
|
42
|
-
label: 'Rename Attribute',
|
|
43
|
-
description: 'Rename attributes in logs, metrics, and traces.',
|
|
44
|
-
allowedSignals: [SignalType.Traces, SignalType.Metrics, SignalType.Logs],
|
|
45
|
-
docsEndpoint: '/pipeline/actions/attributes/renameattribute',
|
|
46
|
-
docsDescription: 'This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition.',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
type: ActionType.PiiMasking,
|
|
50
|
-
icon: getActionIcon(ActionType.PiiMasking),
|
|
51
|
-
label: 'PII Masking',
|
|
52
|
-
description: 'Mask PII data in your traces.',
|
|
53
|
-
allowedSignals: [SignalType.Traces],
|
|
54
|
-
docsEndpoint: '/pipeline/actions/attributes/piimasking',
|
|
55
|
-
docsDescription: 'This action processes a list of PII categories to be masked from the traces.',
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
label: 'Samplers',
|
|
61
|
-
icon: getActionIcon('sampler'),
|
|
62
|
-
items: [
|
|
63
|
-
{
|
|
64
|
-
type: ActionType.ErrorSampler,
|
|
65
|
-
icon: getActionIcon('sampler'),
|
|
66
|
-
label: 'Error Sampler',
|
|
67
|
-
description: 'Sample errors based on percentage.',
|
|
68
|
-
allowedSignals: [SignalType.Traces],
|
|
69
|
-
docsEndpoint: '/pipeline/actions/sampling/errorsampler',
|
|
70
|
-
docsDescription: 'This action is a Global Action that supports error sampling by filtering out non-error traces.',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
type: ActionType.LatencySampler,
|
|
74
|
-
icon: getActionIcon('sampler'),
|
|
75
|
-
label: 'Latency Sampler',
|
|
76
|
-
description: 'Add latency to your traces.',
|
|
77
|
-
allowedSignals: [SignalType.Traces],
|
|
78
|
-
docsEndpoint: '/pipeline/actions/sampling/latencysampler',
|
|
79
|
-
docsDescription: 'This action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter.',
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
type: ActionType.ProbabilisticSampler,
|
|
83
|
-
icon: getActionIcon('sampler'),
|
|
84
|
-
label: 'Probabilistic Sampler',
|
|
85
|
-
description: 'Sample traces based on percentage.',
|
|
86
|
-
allowedSignals: [SignalType.Traces],
|
|
87
|
-
docsEndpoint: '/pipeline/actions/sampling/probabilisticsampler',
|
|
88
|
-
docsDescription: 'This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID.',
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
];
|
|
93
|
-
|
|
94
|
-
const INSTRUMENTATION_RULE_OPTIONS = [
|
|
95
|
-
{
|
|
96
|
-
type: InstrumentationRuleType.PayloadCollection,
|
|
97
|
-
icon: getInstrumentationRuleIcon(InstrumentationRuleType.PayloadCollection),
|
|
98
|
-
label: 'Payload Collection',
|
|
99
|
-
description: 'Collect span attributes containing payload data to traces.',
|
|
100
|
-
docsEndpoint: '/pipeline/rules/payloadcollection',
|
|
101
|
-
docsDescription: 'The “Payload Collection” Rule can be used to add span attributes containing payload data to traces.',
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
type: InstrumentationRuleType.CodeAttributes,
|
|
105
|
-
icon: getInstrumentationRuleIcon(InstrumentationRuleType.CodeAttributes),
|
|
106
|
-
label: 'Code Attributes',
|
|
107
|
-
description: 'Collect code attributes containing payload data to traces.',
|
|
108
|
-
docsEndpoint: '/pipeline/rules/codeattributes',
|
|
109
|
-
docsDescription: 'The “Code Attributes” Rule can be used to add code attributes containing payload data to traces.',
|
|
110
|
-
},
|
|
111
|
-
];
|
|
112
|
-
|
|
113
|
-
const MONITORS_OPTIONS = [
|
|
114
|
-
{
|
|
115
|
-
id: SignalType.Logs,
|
|
116
|
-
value: 'Logs',
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
id: SignalType.Metrics,
|
|
120
|
-
value: 'Metrics',
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
id: SignalType.Traces,
|
|
124
|
-
value: 'Traces',
|
|
125
|
-
},
|
|
126
|
-
];
|
|
127
|
-
|
|
128
|
-
const DEFAULT_DATA_STREAM_NAME = 'default';
|
|
129
|
-
const FORM_ALERTS = {
|
|
130
|
-
REQUIRED_FIELDS: 'Required fields are missing',
|
|
131
|
-
FIELD_IS_REQUIRED: 'This field is required',
|
|
132
|
-
FORBIDDEN: 'Forbidden',
|
|
133
|
-
ENTERPRISE_ONLY: (str = 'This') => `${str} is an Enterprise feature. Please upgrade your plan.`,
|
|
134
|
-
DEFINED_FOR_ALL_STREAMS: (str) => `${str} are defined for all Data Streams.`,
|
|
135
|
-
CANNOT_EDIT_RULE: 'Cannot edit a system-managed instrumentation rule',
|
|
136
|
-
CANNOT_DELETE_RULE: 'Cannot delete a system-managed instrumentation rule',
|
|
137
|
-
LATENCY_HTTP_ROUTE: 'HTTP route must start with a forward slash "/"',
|
|
138
|
-
READONLY_WARNING: "You're not allowed to create/update/delete in readonly mode",
|
|
139
|
-
};
|
|
140
|
-
const DISPLAY_TITLES = {
|
|
141
|
-
NAMESPACE: 'Namespace',
|
|
142
|
-
NAME: 'Name',
|
|
143
|
-
KIND: 'Kind',
|
|
144
|
-
CONNECTION: 'Connection',
|
|
145
|
-
CONNECTIONS: 'Connections',
|
|
146
|
-
DATA_STREAM: 'Data Stream',
|
|
147
|
-
DATA_STREAMS: 'Data Streams',
|
|
148
|
-
STREAM_NAME: 'Data Stream Name',
|
|
149
|
-
NAME_YOUR_STREAM: 'Name your Data Stream',
|
|
150
|
-
NAME_YOUR_STREAM_PLACEHOLDER: 'e.g. Highest priority',
|
|
151
|
-
STREAM_DESCRIPTION: 'Provide a clear and descriptive name for your pipeline to ensure its purpose is easily understood by you and your team.',
|
|
152
|
-
STREAM_CONFIRM: 'Confirm your new Data Stream',
|
|
153
|
-
ACTION: 'Action',
|
|
154
|
-
ACTIONS: 'Actions',
|
|
155
|
-
ADD_ACTION: 'Add Action',
|
|
156
|
-
ACTION_DETAILS: 'Action Details',
|
|
157
|
-
INSTRUMENTATION_RULE: 'Instrumentation Rule',
|
|
158
|
-
INSTRUMENTATION_RULES: 'Instrumentation Rules',
|
|
159
|
-
ADD_INSTRUMENTATION_RULE: 'Add Instrumentation Rule',
|
|
160
|
-
INSTRUMENTATION_RULE_DETAILS: 'Instrumentation Rule Details',
|
|
161
|
-
DESTINATION: 'Destination',
|
|
162
|
-
DESTINATIONS: 'Destinations',
|
|
163
|
-
ADD_DESTINATION: 'Add Destination',
|
|
164
|
-
ADD_DESTINATIONS: 'Add Destinations',
|
|
165
|
-
ADD_DESTINATION_DESCRIPTION: 'Add a destination to send your telemetry data to. You can add multiple destinations.',
|
|
166
|
-
DESTINATION_DETAILS: 'Destination Details',
|
|
167
|
-
SELECTED_DESTINATIONS: 'Selected Destinations',
|
|
168
|
-
SOURCE: 'Source',
|
|
169
|
-
SOURCES: 'Sources',
|
|
170
|
-
ADD_SOURCE: 'Add Source',
|
|
171
|
-
SOURCE_DETAILS: 'Source Details',
|
|
172
|
-
SELECT_SOURCES: 'Select Sources',
|
|
173
|
-
SELECTED_SOURCES: 'Selected Sources',
|
|
174
|
-
SELECT_SOURCES_DESCRIPTION: 'Select apps to monitor in each namespace. Odigos will instrument them and send telemetry data to your destinations.',
|
|
175
|
-
NO_SOURCES: 'No sources',
|
|
176
|
-
NO_SOURCES_GO_BACK: 'No sources selected. Please go back to select sources.',
|
|
177
|
-
PLEASE_ADD_SOURCE: 'Please add a source',
|
|
178
|
-
NO_SOURCES_NAMESPACE: 'No sources available in this namespace',
|
|
179
|
-
TRY_SEARCH_OR_OTHER_NAMESPACE: 'Try searching again or select another namespace.',
|
|
180
|
-
PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES: 'Please make sure your cluster has unignored namespaces',
|
|
181
|
-
INSTALLATION: 'Installation',
|
|
182
|
-
SUMMARY: 'Summary',
|
|
183
|
-
TYPE: 'Type',
|
|
184
|
-
NOTES: 'Notes',
|
|
185
|
-
STATUS: 'Status',
|
|
186
|
-
READONLY: 'Readonly',
|
|
187
|
-
LANGUAGE: 'Language',
|
|
188
|
-
MONITORS: 'Monitors',
|
|
189
|
-
SIGNALS_FOR_PROCESSING: 'Signals for Processing',
|
|
190
|
-
MANAGED_BY_PROFILE: 'Managed by Profile',
|
|
191
|
-
API_TOKEN: 'API Token',
|
|
192
|
-
API_TOKENS: 'API Tokens',
|
|
193
|
-
DESCRIBE_ODIGOS: 'Describe Odigos',
|
|
194
|
-
DESCRIBE_SOURCE: 'Describe Source',
|
|
195
|
-
DETECTED_CONTAINERS: 'Detected Containers',
|
|
196
|
-
DETECTED_CONTAINERS_DESCRIPTION: 'The system automatically instruments the containers it detects with a supported programming language.',
|
|
197
|
-
CONTAINER_NAME: 'Container Name',
|
|
198
|
-
FILTERED_COUNT_TOOLTIP: 'Represents filtered amount, out of total amount',
|
|
199
|
-
SEARCH_NAMESPACES: 'Search Namespaces',
|
|
200
|
-
SHOW_SELECTED_ONLY: 'Show selected only',
|
|
201
|
-
TO_COLLECT_OTEL_DATA: 'To collect OpenTelemetry data',
|
|
202
|
-
TO_MONITOR_OTEL_DATA: 'To monitor OpenTelemetry data',
|
|
203
|
-
TO_MODIFY_OTEL_DATA: 'To modify OpenTelemetry data',
|
|
204
|
-
QUICK_BACK_TO_SUMMARY: 'When you finish editing you can quickly go back to the summary.',
|
|
205
|
-
GO_TO_SUMMARY: 'Go to summary',
|
|
206
|
-
};
|
|
207
|
-
const BUTTON_TEXTS = {
|
|
208
|
-
ADD: 'Add',
|
|
209
|
-
ADD_NEW: 'Add New',
|
|
210
|
-
NEW: 'New',
|
|
211
|
-
SELECT: 'Select',
|
|
212
|
-
CREATE: 'Create',
|
|
213
|
-
UPDATE: 'Update',
|
|
214
|
-
EDIT: 'Edit',
|
|
215
|
-
DELETE: 'Delete',
|
|
216
|
-
CANCEL: 'Cancel',
|
|
217
|
-
DONE: 'Done',
|
|
218
|
-
SAVE: 'Save',
|
|
219
|
-
BACK: 'Back',
|
|
220
|
-
NEXT: 'Next',
|
|
221
|
-
TEST: 'Test',
|
|
222
|
-
TEST_CONNECTION: 'Test Connection',
|
|
223
|
-
INSTRUMENT: 'Instrument',
|
|
224
|
-
UNINSTRUMENT: 'Uninstrument',
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
export { ACTION_OPTIONS as A, BUTTON_TEXTS as B, DEFAULT_DATA_STREAM_NAME as D, FORM_ALERTS as F, INSTRUMENTATION_RULE_OPTIONS as I, MONITORS_OPTIONS as M, DISPLAY_TITLES as a };
|