Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e1a1bfc4
Commit
e1a1bfc4
authored
Sep 09, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Custome Sentry DSN environment variable
parent
e3fc2af7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
README.md
README.md
+6
-0
main.go
main.go
+4
-0
No files found.
README.md
View file @
e1a1bfc4
...
@@ -76,6 +76,12 @@ make install PREFIX=/foo
...
@@ -76,6 +76,12 @@ make install PREFIX=/foo
On some operating systems, such as FreeBSD, you may have to use
On some operating systems, such as FreeBSD, you may have to use
`gmake`
instead of
`make`
.
`gmake`
instead of
`make`
.
## Error tracking
GitLab-Workhorse supports remote error tracking with
[
Sentry
](
https://sentry.io
)
. To enable this feature set the
GITLAB_WORKHORSE_SENTRY_DSN environment variable.
## Tests
## Tests
Run the tests with:
Run the tests with:
...
...
main.go
View file @
e1a1bfc4
...
@@ -106,5 +106,9 @@ func main() {
...
@@ -106,5 +106,9 @@ func main() {
}
}
func
wrapRaven
(
h
http
.
Handler
)
http
.
Handler
{
func
wrapRaven
(
h
http
.
Handler
)
http
.
Handler
{
// Use a custom environment variable (not SENTRY_DSN) to prevent
// clashes with gitlab-rails.
raven
.
SetDSN
(
os
.
Getenv
(
"GITLAB_WORKHORSE_SENTRY_DSN"
))
return
http
.
HandlerFunc
(
raven
.
RecoveryHandler
(
h
.
ServeHTTP
))
return
http
.
HandlerFunc
(
raven
.
RecoveryHandler
(
h
.
ServeHTTP
))
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment