File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,13 @@ log.Fatal(s.ListenAndServe())
47
47
The [ examples] ( examples/ ) directory contains complete example code.
48
48
49
49
To run the simple [ helloworld] ( examples/helloworld/main.go ) example:
50
- ``` bash
50
+ ``` shell
51
51
# Run __without__ sigsci enabled
52
- go run examples/helloworld/main.go localhost:8000
52
+ go run ./ examples/helloworld localhost:8000
53
53
# Run with sigsci-agent listening via a UNIX Domain socket file
54
- go run examples/helloworld/main.go localhost:8000 /var/run/sigsci.sock
54
+ go run ./ examples/helloworld localhost:8000 /var/run/sigsci.sock
55
55
# Run with sigsci-agent listening via a TCP address:port
56
- go run examples/helloworld/main.go localhost:8000 localhost:9999
56
+ go run ./ examples/helloworld localhost:8000 localhost:9999
57
57
```
58
58
59
59
This will run a HTTP listener on ` localhost:8000 ` , which will send any
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ func main() {
20
20
listenerAddress = "localhost:8000"
21
21
}
22
22
23
- // Process sigsci-agent rpc-address if passed
23
+ // Process sigsci-agent rpc-address from the optional second arg
24
24
sigsciAgentNetwork := "unix"
25
25
sigsciAgentAddress := ""
26
26
if len (os .Args ) > 2 {
@@ -56,7 +56,7 @@ func main() {
56
56
log .Fatal (err )
57
57
}
58
58
59
- log .Printf ("Using sigsci- agent address (pass address as program argument to change) : %s:%s" , sigsciAgentNetwork , sigsciAgentAddress )
59
+ log .Printf ("Signal Sciences agent RPC address: %s:%s" , sigsciAgentNetwork , sigsciAgentAddress )
60
60
61
61
// Use the wrapped sigsci handler
62
62
handler = wrapped
You can’t perform that action at this time.
0 commit comments