@launchdarkly/observability + @launchdarkly/session-replay
    Preparing search index...
    • Determine if an item should be sampled based on the sampling ratio.

      This function is not used for any purpose requiring cryptographic security.

      Parameters

      • ratio: number

        The sampling ratio.

      Returns boolean

      True if the item should be sampled, false otherwise.