nat.plugins.data_flywheel.observability.utils.deserialize#

Attributes#

Functions#

deserialize_span_attribute(→ JSONValue)

Deserialize a string input value to any valid JSON value.

Module Contents#

JSONValue#
deserialize_span_attribute(
value: dict[str, Any] | list[Any] | str,
) JSONValue#

Deserialize a string input value to any valid JSON value.

Args:

value (str): The input value to deserialize

Returns:
JSONValue: The deserialized input value, which can be a dictionary, list,

string, number (int/float), boolean, or None

Raises:

ValueError: If parsing fails