Skip to content

Conversation

@dhartunian
Copy link
Collaborator

We introduce pkg/obs/workloadid which defines a commond workloadID definition, subject to extensive future modification, that we can use to tag CPU profiles and execution trace regions.

Currently, the workloadID is either a static value, or a statement fingerprint ID.

Where appropriate, we've tagged CPU profiles with a workload identifier.

When tracing is enabled, on a request, we will attempt to include the workloadID into the region tag in the execution trace. This path is a bit perf sensitive so we only want to incur the cost of allocating the extra string when we're already paying the cost of tracing. It is expected that the combination of statementb diagnostic bundle capture and execution tracing can then be cross-referenced.

Epic: CRDB-55080
Resolves: CRDB-55928
Resolves: CRDB-55924
Release note: None

We introduce `pkg/obs/workloadid` which defines a commond workloadID
definition, subject to extensive future modification, that we can use
to tag CPU profiles and execution trace regions.

Currently, the workloadID is either a static value, or a statement
fingerprint ID.

Where appropriate, we've tagged CPU profiles with a workload identifier.

When tracing is enabled, on a request, we will attempt to include the
workloadID into the region tag in the execution trace. This path is
a bit perf sensitive so we only want to incur the cost of allocating
the extra string when we're already paying the cost of tracing. It is
expected that the combination of statementb diagnostic bundle capture
and execution tracing can then be cross-referenced.

Epic: CRDB-55080
Resolves: CRDB-55928
Resolves: CRDB-55924
Release note: None
@dhartunian dhartunian requested review from a team as code owners December 5, 2025 22:32
@dhartunian dhartunian requested review from jeffswenson and removed request for a team December 5, 2025 22:32
@blathers-crl
Copy link

blathers-crl bot commented Dec 5, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants