Skip to content

server: the TableDetails, TableStats, DatabaseDetails API don't decode with a proper tenant prefix #82879

@knz

Description

@knz

Describe the problem

The code for these HTTP API handlers all use generateTableSpans(), which internally uses keys.TODOSQLCodec.
This is incorrect.

The helper function should instead receive the codec as argument, and the HTTP API handler should pass the ambient codec (the current one for the tenant) instead.

Expected behavior

Code path is tenant-agnostic and does not use keys.TODOSQLCodec.

Epic: CRDB-16704

Jira issue: CRDB-16705

SQL-O11Y Endpoint Migration Tracking Issue: #89429

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-multitenancyRelated to multi-tenancyA-server-architectureRelates to the internal APIs and src org for server codeC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions