Skip to content

Commit

Permalink
Merge branch 'main' into view-refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias authored Oct 31, 2022
2 parents d30ca62 + c8a13d6 commit 0692303
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ linters:
disable-all: true
# Specifically enable linters we want to use.
enable:
- deadcode
- depguard
- errcheck
- godot
Expand All @@ -21,10 +20,8 @@ linters:
- misspell
- revive
- staticcheck
- structcheck
- typecheck
- unused
- varcheck

issues:
# Maximum issues count per one linter.
Expand Down
10 changes: 10 additions & 0 deletions codes/codes.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,20 @@ import (
const (
// Unset is the default status code.
Unset Code = 0

// Error indicates the operation contains an error.
//
// NOTE: The error code in OTLP is 2.
// The value of this enum is only relevant to the internals
// of the Go SDK.
Error Code = 1

// Ok indicates operation has been validated by an Application developers
// or Operator to have completed successfully, or contain no error.
//
// NOTE: The Ok code in OTLP is 1.
// The value of this enum is only relevant to the internals
// of the Go SDK.
Ok Code = 2

maxCode = 3
Expand Down

0 comments on commit 0692303

Please sign in to comment.