Crypto Server
    Preparing search index...

    Function traceCryptoOperation

    • Wraps an async crypto operation with tracing and metrics.

      Type Parameters

      • T

      Parameters

      • operationName: string

        e.g. "encrypt", "sign", "hash"

      • attributes: Record<string, string | number>

        Additional span attributes (algorithm, key size, etc.)

      • fn: () => T | Promise<T>

        The actual operation to execute

      Returns Promise<T>