Skip to content

Commit ff95815

Browse files
committed
Add 'any' type option to create-attribute CLI tool
- Add 'any' to help text for --type flag - Add 'any' option to interactive type selector - Fixes bug where users could not select 'any' type interactively
1 parent 796340e commit ff95815

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎scripts/create_attribute.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Options:
1414
--help, -h Show this help message
1515
--key, -k The attribute key (e.g. http.route)
1616
--description, -d A description of the attribute
17-
--type, -t The type of the attribute (string/boolean/integer/double/string[]/boolean[]/integer[]/double[])
17+
--type, -t The type of the attribute (string/boolean/integer/double/string[]/boolean[]/integer[]/double[]/any)
1818
--has_pii, -p Whether the attribute contains PII (true/maybe/false)
1919
--is_in_otel, -o Whether the attribute is in OpenTelemetry (true/false)
2020
--example, -e An example value (optional)
@@ -221,6 +221,7 @@ async function askForAttributeType() {
221221
{ value: 'integer[]', label: 'Integer Array' },
222222
{ value: 'boolean[]', label: 'Boolean Array' },
223223
{ value: 'double[]', label: 'Double Array' },
224+
{ value: 'any', label: 'Any' },
224225
],
225226
}),
226227
);

0 commit comments

Comments
 (0)