OpenInference JS
    Preparing search index...
    • A function that masks (redacts or removes) sensitive information from span attributes based on the trace config.

      Parameters

      • params: MaskingRuleArgs

        The masking parameters

        The arguments for a masking rule, used to determine if a value should be masked (redacted or omitted)

        • config: TraceConfig

          The trace config to use to determine if the value should be masked

        • key: string

          The key of the attribute to mask

        • Optionalvalue?: AttributeValue

          The value of the attribute to mask

      Returns AttributeValue | undefined

      The redacted value or undefined if the value should be masked, otherwise the original value