-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor pprof labels and process desc (#32909)
* Deprecate "gopid" in log, it is not useful and requires very hacky approach * Remove "git.Command.SetDescription" because it is not useful and only makes the logs too flexible
- Loading branch information
1 parent
c66de24
commit 52b319b
Showing
31 changed files
with
182 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2024 The Gitea Authors. All rights reserved. | ||
// SPDX-License-Identifier: MIT | ||
|
||
package gtprof | ||
|
||
// This is a Gitea-specific profiling package, | ||
// the name is chosen to distinguish it from the standard pprof tool and "GNU gprof" | ||
|
||
// LabelGracefulLifecycle is a label marking manager lifecycle phase | ||
// Making it compliant with prometheus key regex https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels | ||
// would enable someone interested to be able to continuously gather profiles into pyroscope. | ||
// Other labels for pprof should also follow this rule. | ||
const LabelGracefulLifecycle = "graceful_lifecycle" | ||
|
||
// LabelPid is a label set on goroutines that have a process attached | ||
const LabelPid = "pid" | ||
|
||
// LabelPpid is a label set on goroutines that have a process attached | ||
const LabelPpid = "ppid" | ||
|
||
// LabelProcessType is a label set on goroutines that have a process attached | ||
const LabelProcessType = "process_type" | ||
|
||
// LabelProcessDescription is a label set on goroutines that have a process attached | ||
const LabelProcessDescription = "process_description" |
Oops, something went wrong.