The SpanInput object, string, or undefined to convert
OpenTelemetry attributes with INPUT_VALUE and INPUT_MIME_TYPE keys
// SpanInput object
getOutputAttributes({ value: "query", mimeType: MimeType.TEXT })
// Returns: { [INPUT_VALUE]: "query", [INPUT_MIME_TYPE]: MimeType.TEXT }
// String input
getOutputAttributes("simple string")
// Returns: { [INPUT_VALUE]: "simple string", [INPUT_MIME_TYPE]: MimeType.TEXT }
// Undefined input
getOutputAttributes(undefined) // Returns: {}
Converts a SpanInput object or string into OpenTelemetry attributes.
This function transforms span input data into the standardized attribute format used by OpenTelemetry, mapping values to the appropriate semantic convention keys.