Skip to content

Commit 0bf80bc

Browse files
authored
Update README.md (#11)
1 parent cae4511 commit 0bf80bc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ Checks usage of:
1010
- [OpenTelemetry spans](https://opentelemetry.io/docs/instrumentation/go/manual/) from [go.opentelemetry.io/otel/trace](go.opentelemetry.io/otel/trace)
1111
- [OpenCensus spans](https://opencensus.io/quickstart/go/tracing/) from [go.opencensus.io/trace](https://pkg.go.dev/go.opencensus.io/trace#Span)
1212

13-
## Installation & Usage
14-
15-
```bash
16-
go install github.com/jjti/go-spancheck/cmd/spancheck@latest
17-
spancheck ./...
18-
```
19-
2013
## Example
2114

2215
```bash
@@ -74,6 +67,13 @@ linters-settings:
7467
7568
### CLI
7669
70+
To install the linter as a CLI:
71+
72+
```bash
73+
go install github.com/jjti/go-spancheck/cmd/spancheck@latest
74+
spancheck ./...
75+
```
76+
7777
Only the `span.End()` check is enabled by default. The others can be enabled with `-checks 'end,set-status,record-error'`.
7878

7979
```txt

0 commit comments

Comments
 (0)