mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
remove stackimpact
This commit is contained in:
parent
6eda236eab
commit
a2c2419084
74
Gopkg.lock
generated
74
Gopkg.lock
generated
@ -2,132 +2,157 @@
|
|||||||
|
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
|
digest = "1:1bd4d273de93fce29ca3636145ccfcb932754f56e4c099297319e677e89f658d"
|
||||||
name = "code.cloudfoundry.org/bytefmt"
|
name = "code.cloudfoundry.org/bytefmt"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
|
pruneopts = ""
|
||||||
revision = "cbe033486cf0620d3bb77d8ef7f22ab346ad3628"
|
revision = "cbe033486cf0620d3bb77d8ef7f22ab346ad3628"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
digest = "1:20da7140359cab99772431cbeb195bd8cbe76312fcf6509fd8125cf91ab2847b"
|
||||||
name = "github.com/docopt/docopt-go"
|
name = "github.com/docopt/docopt-go"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
|
pruneopts = ""
|
||||||
revision = "ee0de3bc6815ee19d4a46c7eb90f829db0e014b1"
|
revision = "ee0de3bc6815ee19d4a46c7eb90f829db0e014b1"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
digest = "1:5d1f0cdebbc2a5237b572fa539bdb0aefea36780cdc1dbeda3b2f5d39f8f375d"
|
||||||
name = "github.com/goshuirc/e-nfa"
|
name = "github.com/goshuirc/e-nfa"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
|
pruneopts = ""
|
||||||
revision = "7071788e394065e6456458a5e9cb503cad545154"
|
revision = "7071788e394065e6456458a5e9cb503cad545154"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
digest = "1:d7ff716c49f33735c9e25e11b67e70f9eac7eb6c21b9806b0552b52541a568f5"
|
||||||
name = "github.com/goshuirc/irc-go"
|
name = "github.com/goshuirc/irc-go"
|
||||||
packages = [
|
packages = [
|
||||||
"ircfmt",
|
"ircfmt",
|
||||||
"ircmatch",
|
"ircmatch",
|
||||||
"ircmsg"
|
"ircmsg",
|
||||||
]
|
]
|
||||||
|
pruneopts = ""
|
||||||
revision = "8d136c4f92871c1c132bf702022363add479291b"
|
revision = "8d136c4f92871c1c132bf702022363add479291b"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
digest = "1:5be6259a2ab7350284d8c25b8df78153dcca360247be48ea7c55be37689802f4"
|
||||||
name = "github.com/mattn/go-colorable"
|
name = "github.com/mattn/go-colorable"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
|
pruneopts = ""
|
||||||
revision = "7dc3415be66d7cc68bf0182f35c8d31f8d2ad8a7"
|
revision = "7dc3415be66d7cc68bf0182f35c8d31f8d2ad8a7"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
|
digest = "1:78229b46ddb7434f881390029bd1af7661294af31f6802e0e1bedaad4ab0af3c"
|
||||||
name = "github.com/mattn/go-isatty"
|
name = "github.com/mattn/go-isatty"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
|
pruneopts = ""
|
||||||
revision = "0360b2af4f38e8d38c7fce2a9f4e702702d73a39"
|
revision = "0360b2af4f38e8d38c7fce2a9f4e702702d73a39"
|
||||||
version = "v0.0.3"
|
version = "v0.0.3"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
digest = "1:50416da10e189bc201e122e20078fb8e680a439cbdd24aaece06c434b4415b60"
|
||||||
name = "github.com/mgutz/ansi"
|
name = "github.com/mgutz/ansi"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
|
pruneopts = ""
|
||||||
revision = "9520e82c474b0a04dd04f8a40959027271bab992"
|
revision = "9520e82c474b0a04dd04f8a40959027271bab992"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
digest = "1:2251e6a17ea4a6eaa708882a1cda837aae3e425edbb190ef39b761ecf15a5c3d"
|
||||||
name = "github.com/oragono/go-ident"
|
name = "github.com/oragono/go-ident"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
|
pruneopts = ""
|
||||||
revision = "337fed0fd21ad538725cfcb55053ea4cf8056abc"
|
revision = "337fed0fd21ad538725cfcb55053ea4cf8056abc"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
name = "github.com/stackimpact/stackimpact-go"
|
digest = "1:b28f2f9253cbb1bf2bcb3c0ab7421d2f88a245386199a6668b0a66eb09ce3e1f"
|
||||||
packages = [
|
|
||||||
".",
|
|
||||||
"internal",
|
|
||||||
"internal/pprof/profile"
|
|
||||||
]
|
|
||||||
revision = "8b5b02c181e477dafcf505342d8a79b5c8241da7"
|
|
||||||
|
|
||||||
[[projects]]
|
|
||||||
branch = "master"
|
|
||||||
name = "github.com/tidwall/btree"
|
name = "github.com/tidwall/btree"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
|
pruneopts = ""
|
||||||
revision = "9876f1454cf0993a53d74c27196993e345f50dd1"
|
revision = "9876f1454cf0993a53d74c27196993e345f50dd1"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
|
digest = "1:18342f164260096848ceff7c53cf797dbc1556d8161ad51cfc22281916209a5a"
|
||||||
name = "github.com/tidwall/buntdb"
|
name = "github.com/tidwall/buntdb"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
|
pruneopts = ""
|
||||||
revision = "2da7c106683f522198cdf55ed8db42b374de50d7"
|
revision = "2da7c106683f522198cdf55ed8db42b374de50d7"
|
||||||
version = "v1.0.0"
|
version = "v1.0.0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
|
digest = "1:82fa3d995465f05e4c5e7f44a94d084b84a547ad77e41458fe9ec0877d04dced"
|
||||||
name = "github.com/tidwall/gjson"
|
name = "github.com/tidwall/gjson"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
|
pruneopts = ""
|
||||||
revision = "87033efcaec6215741137e8ca61952c53ef2685d"
|
revision = "87033efcaec6215741137e8ca61952c53ef2685d"
|
||||||
version = "v1.0.6"
|
version = "v1.0.6"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
digest = "1:bf59f997bab72b8ecd044aed35d706edb6abd6128afe0502c94398b2374f1f3f"
|
||||||
name = "github.com/tidwall/grect"
|
name = "github.com/tidwall/grect"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
|
pruneopts = ""
|
||||||
revision = "ba9a043346eba55344e40d66a5e74cfda3a9d293"
|
revision = "ba9a043346eba55344e40d66a5e74cfda3a9d293"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
digest = "1:4db4f92bb9cb04cfc4fccb36aba2598b02a988008c4cc0692b241214ad8ac96e"
|
||||||
name = "github.com/tidwall/match"
|
name = "github.com/tidwall/match"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
|
pruneopts = ""
|
||||||
revision = "1731857f09b1f38450e2c12409748407822dc6be"
|
revision = "1731857f09b1f38450e2c12409748407822dc6be"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
digest = "1:5d9d865e55b95f001e52a7f5d1f812e8a80f0f05d5b04ede006f24206ebba33c"
|
||||||
name = "github.com/tidwall/rtree"
|
name = "github.com/tidwall/rtree"
|
||||||
packages = [
|
packages = [
|
||||||
".",
|
".",
|
||||||
"base"
|
"base",
|
||||||
]
|
]
|
||||||
|
pruneopts = ""
|
||||||
revision = "6cd427091e0e662cb4f8e2c9eb1a41e1c46ff0d3"
|
revision = "6cd427091e0e662cb4f8e2c9eb1a41e1c46ff0d3"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
digest = "1:261a5770e68d10884a6d334396842d69ddb57ac5ecef60057eb5bce6f4bc7512"
|
||||||
name = "github.com/tidwall/tinyqueue"
|
name = "github.com/tidwall/tinyqueue"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
|
pruneopts = ""
|
||||||
revision = "1feaf062ef04a231c9126f99a68eaa579fd0e390"
|
revision = "1feaf062ef04a231c9126f99a68eaa579fd0e390"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
digest = "1:295363031beef7eb063d53138806b43f26c38d8a3e2543324ce2af3c766069de"
|
||||||
name = "golang.org/x/crypto"
|
name = "golang.org/x/crypto"
|
||||||
packages = [
|
packages = [
|
||||||
"bcrypt",
|
"bcrypt",
|
||||||
"blowfish",
|
"blowfish",
|
||||||
"ssh/terminal"
|
"ssh/terminal",
|
||||||
]
|
]
|
||||||
|
pruneopts = ""
|
||||||
revision = "5119cf507ed5294cc409c092980c7497ee5d6fd2"
|
revision = "5119cf507ed5294cc409c092980c7497ee5d6fd2"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
digest = "1:407b5f905024dd94ee08c1777fabb380fb3d380f92a7f7df2592be005337eeb3"
|
||||||
name = "golang.org/x/sys"
|
name = "golang.org/x/sys"
|
||||||
packages = [
|
packages = [
|
||||||
"unix",
|
"unix",
|
||||||
"windows"
|
"windows",
|
||||||
]
|
]
|
||||||
|
pruneopts = ""
|
||||||
revision = "37707fdb30a5b38865cfb95e5aab41707daec7fd"
|
revision = "37707fdb30a5b38865cfb95e5aab41707daec7fd"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
digest = "1:31985a0ed491dba5ba7fe92e18be008acd92ca9435ed9b35b06f3e6c00fd82cb"
|
||||||
name = "golang.org/x/text"
|
name = "golang.org/x/text"
|
||||||
packages = [
|
packages = [
|
||||||
"cases",
|
"cases",
|
||||||
@ -148,19 +173,36 @@
|
|||||||
"unicode/cldr",
|
"unicode/cldr",
|
||||||
"unicode/norm",
|
"unicode/norm",
|
||||||
"unicode/rangetable",
|
"unicode/rangetable",
|
||||||
"width"
|
"width",
|
||||||
]
|
]
|
||||||
|
pruneopts = ""
|
||||||
revision = "4e4a3210bb54bb31f6ab2cdca2edcc0b50c420c1"
|
revision = "4e4a3210bb54bb31f6ab2cdca2edcc0b50c420c1"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "v2"
|
branch = "v2"
|
||||||
|
digest = "1:4b4e5848dfe7f316f95f754df071bebfb40cf4482da62e17e7e1aebdf11f4918"
|
||||||
name = "gopkg.in/yaml.v2"
|
name = "gopkg.in/yaml.v2"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
|
pruneopts = ""
|
||||||
revision = "d670f9405373e636a5a2765eea47fac0c9bc91a4"
|
revision = "d670f9405373e636a5a2765eea47fac0c9bc91a4"
|
||||||
|
|
||||||
[solve-meta]
|
[solve-meta]
|
||||||
analyzer-name = "dep"
|
analyzer-name = "dep"
|
||||||
analyzer-version = 1
|
analyzer-version = 1
|
||||||
inputs-digest = "1f6e6db999e9e75b04aee6f0018be1557848f8248a28cf21783188fdeb866718"
|
input-imports = [
|
||||||
|
"code.cloudfoundry.org/bytefmt",
|
||||||
|
"github.com/docopt/docopt-go",
|
||||||
|
"github.com/goshuirc/irc-go/ircfmt",
|
||||||
|
"github.com/goshuirc/irc-go/ircmatch",
|
||||||
|
"github.com/goshuirc/irc-go/ircmsg",
|
||||||
|
"github.com/mattn/go-colorable",
|
||||||
|
"github.com/mgutz/ansi",
|
||||||
|
"github.com/oragono/go-ident",
|
||||||
|
"github.com/tidwall/buntdb",
|
||||||
|
"golang.org/x/crypto/bcrypt",
|
||||||
|
"golang.org/x/crypto/ssh/terminal",
|
||||||
|
"golang.org/x/text/secure/precis",
|
||||||
|
"gopkg.in/yaml.v2",
|
||||||
|
]
|
||||||
solver-name = "gps-cdcl"
|
solver-name = "gps-cdcl"
|
||||||
solver-version = 1
|
solver-version = 1
|
||||||
|
@ -75,10 +75,6 @@
|
|||||||
branch = "master"
|
branch = "master"
|
||||||
name = "github.com/mgutz/ansi"
|
name = "github.com/mgutz/ansi"
|
||||||
|
|
||||||
[[dependencies]]
|
|
||||||
branch = "master"
|
|
||||||
name = "github.com/stackimpact/stackimpact-go"
|
|
||||||
|
|
||||||
[[dependencies]]
|
[[dependencies]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
name = "github.com/tidwall/buntdb"
|
name = "github.com/tidwall/buntdb"
|
||||||
|
@ -200,13 +200,6 @@ func (sts *STSConfig) Value() string {
|
|||||||
return val
|
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"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type FakelagConfig struct {
|
type FakelagConfig struct {
|
||||||
Enabled bool
|
Enabled bool
|
||||||
Window time.Duration
|
Window time.Duration
|
||||||
@ -273,7 +266,6 @@ type Config struct {
|
|||||||
Debug struct {
|
Debug struct {
|
||||||
RecoverFromErrors *bool `yaml:"recover-from-errors"`
|
RecoverFromErrors *bool `yaml:"recover-from-errors"`
|
||||||
PprofListener *string `yaml:"pprof-listener"`
|
PprofListener *string `yaml:"pprof-listener"`
|
||||||
StackImpact StackImpactConfig
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Limits Limits
|
Limits Limits
|
||||||
|
15
oragono.go
15
oragono.go
@ -18,7 +18,6 @@ import (
|
|||||||
"github.com/oragono/oragono/irc/logger"
|
"github.com/oragono/oragono/irc/logger"
|
||||||
"github.com/oragono/oragono/irc/mkcerts"
|
"github.com/oragono/oragono/irc/mkcerts"
|
||||||
"github.com/oragono/oragono/irc/passwd"
|
"github.com/oragono/oragono/irc/passwd"
|
||||||
stackimpact "github.com/stackimpact/stackimpact-go"
|
|
||||||
"golang.org/x/crypto/ssh/terminal"
|
"golang.org/x/crypto/ssh/terminal"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -127,20 +126,6 @@ Options:
|
|||||||
irc.Ver = fmt.Sprintf("%s-%s", irc.Ver, commit)
|
irc.Ver = fmt.Sprintf("%s-%s", irc.Ver, commit)
|
||||||
}
|
}
|
||||||
|
|
||||||
// profiling
|
|
||||||
if config.Debug.StackImpact.Enabled {
|
|
||||||
if config.Debug.StackImpact.AgentKey == "" || config.Debug.StackImpact.AppName == "" {
|
|
||||||
logman.Error("startup", "Could not start StackImpact - agent-key or app-name are undefined")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
agent := stackimpact.NewAgent()
|
|
||||||
agent.Start(stackimpact.Options{AgentKey: config.Debug.StackImpact.AgentKey, AppName: config.Debug.StackImpact.AppName})
|
|
||||||
defer agent.RecordPanic()
|
|
||||||
|
|
||||||
logman.Info("startup", fmt.Sprintf("StackImpact profiling started as %s", config.Debug.StackImpact.AppName))
|
|
||||||
}
|
|
||||||
|
|
||||||
// warning if running a non-final version
|
// warning if running a non-final version
|
||||||
if strings.Contains(irc.SemVer, "unreleased") {
|
if strings.Contains(irc.SemVer, "unreleased") {
|
||||||
logman.Warning("startup", "You are currently running an unreleased beta version of Oragono that may be unstable and could corrupt your database.\nIf you are running a production network, please download the latest build from https://oragono.io/downloads.html and run that instead.")
|
logman.Warning("startup", "You are currently running an unreleased beta version of Oragono that may be unstable and could corrupt your database.\nIf you are running a production network, please download the latest build from https://oragono.io/downloads.html and run that instead.")
|
||||||
|
11
oragono.yaml
11
oragono.yaml
@ -355,17 +355,6 @@ debug:
|
|||||||
# set to `null`, "", leave blank, or omit to disable
|
# set to `null`, "", leave blank, or omit to disable
|
||||||
# pprof-listener: "localhost:6060"
|
# pprof-listener: "localhost:6060"
|
||||||
|
|
||||||
# enabling StackImpact profiling
|
|
||||||
stackimpact:
|
|
||||||
# whether to use StackImpact
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
# the AgentKey to use
|
|
||||||
agent-key: examplekeyhere
|
|
||||||
|
|
||||||
# the app name to report
|
|
||||||
app-name: Oragono
|
|
||||||
|
|
||||||
# datastore configuration
|
# datastore configuration
|
||||||
datastore:
|
datastore:
|
||||||
# path to the datastore
|
# path to the datastore
|
||||||
|
Loading…
Reference in New Issue
Block a user