Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
qorus
prometheus
Commits
a07b89d4
Commit
a07b89d4
authored
May 06, 2013
by
Bernerd Schaefer
Browse files
Document go-1.1 race detector with prometheus
parent
cdde766f
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
a07b89d4
...
...
@@ -107,6 +107,22 @@ architecture and release identification remarks for us.
$ make test
### Race Detector
Go 1.1 includes a
[
race
detector
](
http://tip.golang.org/doc/articles/race_detector.html
)
which can be
enabled at build time. Here's how to use it with prometheus (assumes that
you've already run a successful build).
To run the tests with race detection:
$ GORACE="log_path=/tmp/foo" go test -race ./...
To run the server with race detection:
$ go build -race .
$ GORACE="log_path=/tmp/foo" ./prometheus
[

](https://travis-ci.org/prometheus/prometheus)
## Contributing
...
...
Write
Preview
Supports
Markdown
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