forked from External/ergo
Integrate StackImpact profiling
This commit is contained in:
parent
2bd4d03ecc
commit
5c518531be
3 changed files with 43 additions and 3 deletions
|
|
@ -173,6 +173,13 @@ func (sts *STSConfig) Value() string {
|
|||
return val
|
||||
}
|
||||
|
||||
// StackImpactConfig is the config used for StackImpact's profiling.
|
||||
type StackImpactConfig struct {
|
||||
Enabled bool
|
||||
AgentKey string `yaml:"agent-key"`
|
||||
AppName string `yaml:"app-name"`
|
||||
}
|
||||
|
||||
// Config defines the overall configuration.
|
||||
type Config struct {
|
||||
Network struct {
|
||||
|
|
@ -215,6 +222,10 @@ type Config struct {
|
|||
|
||||
Logging []LoggingConfig
|
||||
|
||||
Debug struct {
|
||||
StackImpact StackImpactConfig
|
||||
}
|
||||
|
||||
Limits struct {
|
||||
AwayLen uint `yaml:"awaylen"`
|
||||
ChanListModes uint `yaml:"chan-list-modes"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue