Skip to content

Commit

Permalink
Rename opencensusd to ocagent (census-instrumentation#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyll committed Sep 21, 2018
1 parent d027b3c commit 61d8c04
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ We are planning to address this problem in the future.

## Usage

First, install opencensusd if you haven't.
First, install ocagent if you haven't.

```
$ go get github.com/census-instrumentation/opencensus-service/cmd/opencensusd
$ go get github.com/census-instrumentation/opencensus-service/cmd/ocagent
```

Create a config.yaml file in the current directory and modify
Expand All @@ -64,14 +64,14 @@ to the daemon if it is running.
$ go run "$(go env GOPATH)/src/github.com/census-instrumentation/opencensus-service/example/main.go"
```

Run opencensusd:
Run ocagent:

```
$ opencensusd
$ ocagent
```

You should be able to see the traces in Stackdriver and Zipkin.
If you stop the opencensusd, example application will stop exporting.
If you stop the ocagent, example application will stop exporting.
If you run it again, it will start exporting again.

## OpenCensus Agent
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions cmd/opencensusd/main.go → cmd/ocagent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Program opencensusd collects OpenCensus stats and traces
// Program ocagent collects OpenCensus stats and traces
// to export to a configured backend.
package main

Expand All @@ -27,7 +27,7 @@ import (
"os/signal"

pb "github.com/census-instrumentation/opencensus-proto/gen-go/exporter/v1"
"github.com/census-instrumentation/opencensus-service/cmd/opencensusd/exporter"
"github.com/census-instrumentation/opencensus-service/cmd/ocagent/exporter"
"github.com/census-instrumentation/opencensus-service/internal"
"google.golang.org/grpc"
)
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (e *Exporter) deleteClient() {
func debugPrintf(msg string, arg ...interface{}) {
if debug {
if len(arg) > 0 {
fmt.Printf(msg, arg)
fmt.Printf(msg, arg...)
} else {
fmt.Printf(msg)
}
Expand Down

0 comments on commit 61d8c04

Please sign in to comment.