Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Sherif <me@ahmadsherif.com>2018-02-14 19:33:17 +0300
committerAhmad Sherif <me@ahmadsherif.com>2018-02-22 19:19:19 +0300
commit190cfe4f31b4378d677de1038852d09e29bf73e4 (patch)
tree3ccda78e7bd13f7e7f4872e0da4a0ec2d3e9acaa /internal/rubyserver
parent031bf3ec2885066dc25c4851288b19ccb8145b63 (diff)
Send gitaly-ruby exceptions to Sentry
Closes #988
Diffstat (limited to 'internal/rubyserver')
-rw-r--r--internal/rubyserver/rubyserver.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/rubyserver/rubyserver.go b/internal/rubyserver/rubyserver.go
index 2f191048e..35dcdcca0 100644
--- a/internal/rubyserver/rubyserver.go
+++ b/internal/rubyserver/rubyserver.go
@@ -15,6 +15,7 @@ import (
"gitlab.com/gitlab-org/gitaly/internal/config"
"gitlab.com/gitlab-org/gitaly/internal/rubyserver/balancer"
"gitlab.com/gitlab-org/gitaly/internal/supervisor"
+ "gitlab.com/gitlab-org/gitaly/internal/version"
"gitlab.com/gitlab-org/gitaly/streamio"
pb "gitlab.com/gitlab-org/gitaly-proto/go"
@@ -104,7 +105,12 @@ func Start() (*Server, error) {
fmt.Sprintf("GITALY_RUBY_WRITE_BUFFER_SIZE=%d", streamio.WriteBufferSize),
"GITALY_RUBY_GITLAB_SHELL_PATH="+cfg.GitlabShell.Dir,
"GITALY_RUBY_GITALY_BIN_DIR="+cfg.BinDir,
+ "GITALY_VERSION="+version.GetVersion(),
)
+ if dsn := cfg.Logging.SentryDSN; dsn != "" {
+ env = append(env, "SENTRY_DSN="+dsn)
+ }
+
gitalyRuby := path.Join(cfg.Ruby.Dir, "bin/gitaly-ruby")
s := &Server{}