File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,6 @@ Checks usage of:
10
10
- [ OpenTelemetry spans] ( https://opentelemetry.io/docs/instrumentation/go/manual/ ) from [ go.opentelemetry.io/otel/trace] ( go.opentelemetry.io/otel/trace )
11
11
- [ OpenCensus spans] ( https://opencensus.io/quickstart/go/tracing/ ) from [ go.opencensus.io/trace] ( https://pkg.go.dev/go.opencensus.io/trace#Span )
12
12
13
- ## Installation & Usage
14
-
15
- ``` bash
16
- go install github.com/jjti/go-spancheck/cmd/spancheck@latest
17
- spancheck ./...
18
- ```
19
-
20
13
## Example
21
14
22
15
``` bash
@@ -74,6 +67,13 @@ linters-settings:
74
67
75
68
### CLI
76
69
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
+
77
77
Only the ` span.End() ` check is enabled by default. The others can be enabled with ` -checks 'end,set-status,record-error' ` .
78
78
79
79
``` txt
You can’t perform that action at this time.
0 commit comments