Skip to content

Conversation

@dhartunian
Copy link
Collaborator

@dhartunian dhartunian commented Nov 17, 2025

This commit replaces usages of pprof.Do with our internal
implementation that wraps the SetProfilerLabels utility. This
enables us to have better standardization around profiler label
application and easier tracking of all usages.

A linter is added to enforce this usage.

Epic: CRDB-55080
Part of: CRDB-55923

Release note: None

@dhartunian dhartunian requested review from a team as code owners November 17, 2025 20:56
@dhartunian dhartunian requested review from kev-cao and removed request for a team November 17, 2025 20:56
@cockroach-teamcity
Copy link
Member

This change is Reviewable

This commit replaces usages of `pprof.Do` with our internal
implementation that wraps the `SetProfilerLabels` utility. This
enables us to have better standardization around profiler label
application and easier tracking of all usages.

A linter is added to enforce this usage.

Epic: CRDB-55080
Part of: CRDB-55923

Release note: None
@dhartunian dhartunian force-pushed the davidh/pprof-label-refactor branch from 62ded38 to 6dbcf08 Compare November 20, 2025 19:08
@dhartunian dhartunian requested a review from pav-kv November 20, 2025 19:16
Comment on lines +1166 to +1168
if err != nil {
t.Fatal(err)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use require?

require.NoError(t, err)
require.NoError(t, cmd.Start())
// etc

Copy link
Member

@jasonlmfong jasonlmfong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense

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.

4 participants