span_kind.js 1.7 KB

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