Skip to content

Commit 0692303

Browse files
authored
Merge branch 'main' into view-refactor
2 parents d30ca62 + c8a13d6 commit 0692303

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.golangci.yml

-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ linters:
99
disable-all: true
1010
# Specifically enable linters we want to use.
1111
enable:
12-
- deadcode
1312
- depguard
1413
- errcheck
1514
- godot
@@ -21,10 +20,8 @@ linters:
2120
- misspell
2221
- revive
2322
- staticcheck
24-
- structcheck
2523
- typecheck
2624
- unused
27-
- varcheck
2825

2926
issues:
3027
# Maximum issues count per one linter.

codes/codes.go

+10
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,20 @@ import (
2323
const (
2424
// Unset is the default status code.
2525
Unset Code = 0
26+
2627
// 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.
2732
Error Code = 1
33+
2834
// Ok indicates operation has been validated by an Application developers
2935
// 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.
3040
Ok Code = 2
3141

3242
maxCode = 3

0 commit comments

Comments
 (0)