UNPKG

2.67 kBJavaScriptView Raw
1Object.defineProperty(exports, '__esModule', { value: true });
2
3/** The status of an Span.
4 *
5 * @deprecated Use string literals - if you require type casting, cast to SpanStatusType type
6 */
7// eslint-disable-next-line import/export
8exports.SpanStatus = void 0; (function (SpanStatus) {
9 /** The operation completed successfully. */
10 const Ok = 'ok'; SpanStatus["Ok"] = Ok;
11 /** Deadline expired before operation could complete. */
12 const DeadlineExceeded = 'deadline_exceeded'; SpanStatus["DeadlineExceeded"] = DeadlineExceeded;
13 /** 401 Unauthorized (actually does mean unauthenticated according to RFC 7235) */
14 const Unauthenticated = 'unauthenticated'; SpanStatus["Unauthenticated"] = Unauthenticated;
15 /** 403 Forbidden */
16 const PermissionDenied = 'permission_denied'; SpanStatus["PermissionDenied"] = PermissionDenied;
17 /** 404 Not Found. Some requested entity (file or directory) was not found. */
18 const NotFound = 'not_found'; SpanStatus["NotFound"] = NotFound;
19 /** 429 Too Many Requests */
20 const ResourceExhausted = 'resource_exhausted'; SpanStatus["ResourceExhausted"] = ResourceExhausted;
21 /** Client specified an invalid argument. 4xx. */
22 const InvalidArgument = 'invalid_argument'; SpanStatus["InvalidArgument"] = InvalidArgument;
23 /** 501 Not Implemented */
24 const Unimplemented = 'unimplemented'; SpanStatus["Unimplemented"] = Unimplemented;
25 /** 503 Service Unavailable */
26 const Unavailable = 'unavailable'; SpanStatus["Unavailable"] = Unavailable;
27 /** Other/generic 5xx. */
28 const InternalError = 'internal_error'; SpanStatus["InternalError"] = InternalError;
29 /** Unknown. Any non-standard HTTP status code. */
30 const UnknownError = 'unknown_error'; SpanStatus["UnknownError"] = UnknownError;
31 /** The operation was cancelled (typically by the user). */
32 const Cancelled = 'cancelled'; SpanStatus["Cancelled"] = Cancelled;
33 /** Already exists (409) */
34 const AlreadyExists = 'already_exists'; SpanStatus["AlreadyExists"] = AlreadyExists;
35 /** Operation was rejected because the system is not in a state required for the operation's */
36 const FailedPrecondition = 'failed_precondition'; SpanStatus["FailedPrecondition"] = FailedPrecondition;
37 /** The operation was aborted, typically due to a concurrency issue. */
38 const Aborted = 'aborted'; SpanStatus["Aborted"] = Aborted;
39 /** Operation was attempted past the valid range. */
40 const OutOfRange = 'out_of_range'; SpanStatus["OutOfRange"] = OutOfRange;
41 /** Unrecoverable data loss or corruption */
42 const DataLoss = 'data_loss'; SpanStatus["DataLoss"] = DataLoss;
43})(exports.SpanStatus || (exports.SpanStatus = {}));
44//# sourceMappingURL=spanstatus.js.map