File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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+
7777Only the ` span.End() ` check is enabled by default. The others can be enabled with ` -checks 'end,set-status,record-error' ` .
7878
7979``` txt
You can’t perform that action at this time.
0 commit comments