OpenInference JS
    Preparing search index...
    defaultProcessInput: InputToAttributesFn = ...

    Default input processing function that converts function arguments to OpenTelemetry attributes.

    This is a convenience function that combines toInputType and getInputAttributes to provide a complete input processing pipeline for tracing decorators.

    The function arguments to process

    OpenTelemetry attributes representing the input

    const attrs = defaultProcessInput("hello", { key: "value" });
    // Returns: { [INPUT_VALUE]: '["hello",{"key":"value"}]', [INPUT_MIME_TYPE]: MimeType.JSON }