Skip to content
This repository was archived by the owner on Nov 7, 2022. It is now read-only.

Commit 5d4aea2

Browse files
author
Paulo Janotti
authored
go run for ocagent from sources and clone repo blurb (#446)
* `go run` for ocagent from sources and clone repo blurb Fix #445 * Small fixes * PR Comments
1 parent 05bcd95 commit 5d4aea2

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ zpages:
210210

211211
### <a name="agent-usage"></a>Usage
212212

213-
The ocagent can be run directly from sources, binary, or a Docker image.
213+
The ocagent can be run directly from sources, binary, or a Docker image. If you are planning to run from sources or build
214+
on your machine start by cloning the repo using `go get -d github.com/census-instrumentation/opencensus-service`.
214215

215216
It is recommended that you use the latest [release](https://github.com/census-instrumentation/opencensus-service/releases).
216217

@@ -219,7 +220,7 @@ The minimum Go version required for this project is Go 1.11.4.
219220
1. Run from sources:
220221

221222
```shell
222-
$ GO111MODULE=on go get github.com/census-instrumentation/opencensus-service/cmd/ocagent
223+
$ GO111MODULE=on go run github.com/census-instrumentation/opencensus-service/cmd/ocagent --help
223224
```
224225

225226
2. Run from binary (from the root of your repo):
@@ -322,13 +323,14 @@ sampling:
322323

323324
> It is recommended that you use the latest [release](https://github.com/census-instrumentation/opencensus-service/releases).
324325

325-
The collector can be run directly from sources, binary, or a Docker image.
326+
The collector can be run directly from sources, binary, or a Docker image. If you are planning to run from sources or build
327+
on your machine start by cloning the repo using `go get -d github.com/census-instrumentation/opencensus-service`.
326328

327329
The minimum Go version required for this project is Go 1.11.4.
328330

329331
1. Run from sources:
330332
```shell
331-
$ GO111MODULE=on go run github.com/census-instrumentation/opencensus-service/cmd/occollector
333+
$ GO111MODULE=on go run github.com/census-instrumentation/opencensus-service/cmd/occollector --help
332334
```
333335
2. Run from binary (from the root of your repo):
334336
```shell
@@ -409,4 +411,4 @@ queued-exporters:
409411
[gitter-image]: https://badges.gitter.im/census-instrumentation/lobby.svg
410412
[gitter-url]: https://gitter.im/census-instrumentation/lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
411413
[codecov-image]: https://codecov.io/gh/census-instrumentation/opencensus-service/branch/master/graph/badge.svg
412-
[codecov-url]: https://codecov.io/gh/census-instrumentation/opencensus-service/branch/master/
414+
[codecov-url]: https://codecov.io/gh/census-instrumentation/opencensus-service/branch/master/

0 commit comments

Comments
 (0)