• A utility function that will add metadata to the record under current context's key, supporting nested records.

    Parameters

    • key: string

      the record's key (string) in the context

    • metadata: Record<string, unknown>

      the metadata (key-value pair), to be added to the context

    Returns void