UNPKG

1.87 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.SpanKind = void 0;
4/*
5 * Copyright The OpenTelemetry Authors
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * https://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19var SpanKind;
20(function (SpanKind) {
21 /** Default value. Indicates that the span is used internally. */
22 SpanKind[SpanKind["INTERNAL"] = 0] = "INTERNAL";
23 /**
24 * Indicates that the span covers server-side handling of an RPC or other
25 * remote request.
26 */
27 SpanKind[SpanKind["SERVER"] = 1] = "SERVER";
28 /**
29 * Indicates that the span covers the client-side wrapper around an RPC or
30 * other remote request.
31 */
32 SpanKind[SpanKind["CLIENT"] = 2] = "CLIENT";
33 /**
34 * Indicates that the span describes producer sending a message to a
35 * broker. Unlike client and server, there is no direct critical path latency
36 * relationship between producer and consumer spans.
37 */
38 SpanKind[SpanKind["PRODUCER"] = 3] = "PRODUCER";
39 /**
40 * Indicates that the span describes consumer receiving a message from a
41 * broker. Unlike client and server, there is no direct critical path latency
42 * relationship between producer and consumer spans.
43 */
44 SpanKind[SpanKind["CONSUMER"] = 4] = "CONSUMER";
45})(SpanKind = exports.SpanKind || (exports.SpanKind = {}));
46//# sourceMappingURL=span_kind.js.map
\No newline at end of file