Program Listing for File canonical_code.h

Return to documentation for file (/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-cpp/checkouts/stable/api/include/opentelemetry/trace/canonical_code.h)

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

#pragma once

#include <cstdint>

#include "opentelemetry/version.h"

OPENTELEMETRY_BEGIN_NAMESPACE
namespace trace
{
enum class CanonicalCode : uint8_t
{
  OK = 0,

  CANCELLED = 1,

  UNKNOWN = 2,

  INVALID_ARGUMENT = 3,

  DEADLINE_EXCEEDED = 4,

  NOT_FOUND = 5,

  ALREADY_EXISTS = 6,

  PERMISSION_DENIED = 7,

  RESOURCE_EXHAUSTED = 8,

  FAILED_PRECONDITION = 9,

  ABORTED = 10,

  OUT_OF_RANGE = 11,

  UNIMPLEMENTED = 12,

  INTERNAL = 13,

  UNAVAILABLE = 14,

  DATA_LOSS = 15,

  UNAUTHENTICATED = 16,
};

}  // namespace trace
OPENTELEMETRY_END_NAMESPACE