File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 9
9
disable-all : true
10
10
# Specifically enable linters we want to use.
11
11
enable :
12
- - deadcode
13
12
- depguard
14
13
- errcheck
15
14
- godot
@@ -21,10 +20,8 @@ linters:
21
20
- misspell
22
21
- revive
23
22
- staticcheck
24
- - structcheck
25
23
- typecheck
26
24
- unused
27
- - varcheck
28
25
29
26
issues :
30
27
# Maximum issues count per one linter.
Original file line number Diff line number Diff line change @@ -23,10 +23,20 @@ import (
23
23
const (
24
24
// Unset is the default status code.
25
25
Unset Code = 0
26
+
26
27
// Error indicates the operation contains an error.
28
+ //
29
+ // NOTE: The error code in OTLP is 2.
30
+ // The value of this enum is only relevant to the internals
31
+ // of the Go SDK.
27
32
Error Code = 1
33
+
28
34
// Ok indicates operation has been validated by an Application developers
29
35
// or Operator to have completed successfully, or contain no error.
36
+ //
37
+ // NOTE: The Ok code in OTLP is 1.
38
+ // The value of this enum is only relevant to the internals
39
+ // of the Go SDK.
30
40
Ok Code = 2
31
41
32
42
maxCode = 3
You can’t perform that action at this time.
0 commit comments