Skip to content

kv: include conflicting request information in latch manager traces/logs #114601

@nvb

Description

@nvb

The latch manager contains trace events and logs for conflicts in Manager.waitForSignal. This observability uses latch.String to present the span and the strength of the conflicting latch. However, it does not present information about the specific requests holding the latch or the requests acquiring the latch.

We should push down *BatchRequests into the spanlatch.Manager and include the output from BatchRequest.SafeFormat in latch.SafeFormat.

Jira issue: CRDB-33589

Epic CRDB-34227

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-kv-observabilityA-kv-transactionsRelating to MVCC and the transactional model.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-kvKV Team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions