@opentelemetry/api 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/README.md +12 -35
  2. package/build/esm/api/context.js +25 -5
  3. package/build/esm/api/context.js.map +1 -1
  4. package/build/esm/api/diag.d.ts +3 -11
  5. package/build/esm/api/diag.js +38 -7
  6. package/build/esm/api/diag.js.map +1 -1
  7. package/build/esm/api/metrics.d.ts +28 -0
  8. package/build/esm/api/metrics.js +60 -0
  9. package/build/esm/api/metrics.js.map +1 -0
  10. package/build/esm/api/propagation.d.ts +2 -1
  11. package/build/esm/api/propagation.js +2 -1
  12. package/build/esm/api/propagation.js.map +1 -1
  13. package/build/esm/baggage/context-helpers.d.ts +6 -0
  14. package/build/esm/baggage/context-helpers.js +9 -0
  15. package/build/esm/baggage/context-helpers.js.map +1 -1
  16. package/build/esm/baggage/internal/baggage-impl.js +41 -4
  17. package/build/esm/baggage/internal/baggage-impl.js.map +1 -1
  18. package/build/esm/common/Attributes.js.map +1 -1
  19. package/build/esm/context/NoopContextManager.js +25 -5
  20. package/build/esm/context/NoopContextManager.js.map +1 -1
  21. package/build/esm/context-api.d.ts +4 -0
  22. package/build/esm/context-api.js +21 -0
  23. package/build/esm/context-api.js.map +1 -0
  24. package/build/esm/diag/ComponentLogger.js +26 -1
  25. package/build/esm/diag/ComponentLogger.js.map +1 -1
  26. package/build/esm/diag/types.d.ts +30 -0
  27. package/build/esm/diag/types.js.map +1 -1
  28. package/build/esm/diag-api.d.ts +9 -0
  29. package/build/esm/diag-api.js +26 -0
  30. package/build/esm/diag-api.js.map +1 -0
  31. package/build/esm/index.d.ts +44 -48
  32. package/build/esm/index.js +29 -43
  33. package/build/esm/index.js.map +1 -1
  34. package/build/esm/internal/global-utils.d.ts +3 -1
  35. package/build/esm/internal/global-utils.js.map +1 -1
  36. package/build/esm/metrics/Meter.d.ts +104 -0
  37. package/build/esm/{diag/index.js → metrics/Meter.js} +2 -3
  38. package/build/esm/metrics/Meter.js.map +1 -0
  39. package/build/esm/metrics/MeterProvider.d.ts +17 -0
  40. package/build/esm/metrics/MeterProvider.js +17 -0
  41. package/build/esm/metrics/MeterProvider.js.map +1 -0
  42. package/build/esm/metrics/Metric.d.ts +93 -0
  43. package/build/esm/metrics/Metric.js +22 -0
  44. package/build/esm/metrics/Metric.js.map +1 -0
  45. package/build/esm/metrics/NoopMeter.d.ts +74 -0
  46. package/build/esm/metrics/NoopMeter.js +165 -0
  47. package/build/esm/metrics/NoopMeter.js.map +1 -0
  48. package/build/esm/metrics/NoopMeterProvider.d.ts +11 -0
  49. package/build/esm/metrics/NoopMeterProvider.js +31 -0
  50. package/build/esm/metrics/NoopMeterProvider.js.map +1 -0
  51. package/build/esm/metrics/ObservableResult.d.ts +31 -0
  52. package/build/esm/metrics/ObservableResult.js +17 -0
  53. package/build/esm/metrics/ObservableResult.js.map +1 -0
  54. package/build/esm/metrics-api.d.ts +4 -0
  55. package/build/esm/metrics-api.js +21 -0
  56. package/build/esm/metrics-api.js.map +1 -0
  57. package/build/esm/platform/browser/globalThis.js +10 -7
  58. package/build/esm/platform/browser/globalThis.js.map +1 -1
  59. package/build/esm/propagation-api.d.ts +4 -0
  60. package/build/esm/propagation-api.js +21 -0
  61. package/build/esm/propagation-api.js.map +1 -0
  62. package/build/esm/trace/NoopTracer.js +4 -3
  63. package/build/esm/trace/NoopTracer.js.map +1 -1
  64. package/build/esm/trace/ProxyTracer.js.map +1 -1
  65. package/build/esm/trace/internal/utils.js.map +1 -1
  66. package/build/esm/trace-api.d.ts +4 -0
  67. package/build/esm/trace-api.js +21 -0
  68. package/build/esm/trace-api.js.map +1 -0
  69. package/build/esm/version.d.ts +1 -1
  70. package/build/esm/version.js +1 -1
  71. package/build/esm/version.js.map +1 -1
  72. package/build/src/api/context.js +26 -38
  73. package/build/src/api/context.js.map +1 -1
  74. package/build/src/api/diag.d.ts +3 -11
  75. package/build/src/api/diag.js +33 -33
  76. package/build/src/api/diag.js.map +1 -1
  77. package/build/src/api/metrics.d.ts +28 -0
  78. package/build/src/api/metrics.js +61 -0
  79. package/build/src/api/metrics.js.map +1 -0
  80. package/build/src/api/propagation.d.ts +2 -1
  81. package/build/src/api/propagation.js +29 -31
  82. package/build/src/api/propagation.js.map +1 -1
  83. package/build/src/api/trace.js +22 -23
  84. package/build/src/api/trace.js.map +1 -1
  85. package/build/src/baggage/context-helpers.d.ts +6 -0
  86. package/build/src/baggage/context-helpers.js +13 -3
  87. package/build/src/baggage/context-helpers.js.map +1 -1
  88. package/build/src/baggage/internal/baggage-impl.js +21 -30
  89. package/build/src/baggage/internal/baggage-impl.js.map +1 -1
  90. package/build/src/baggage/utils.js +7 -8
  91. package/build/src/baggage/utils.js.map +1 -1
  92. package/build/src/common/Attributes.js.map +1 -1
  93. package/build/src/context/NoopContextManager.js +14 -26
  94. package/build/src/context/NoopContextManager.js.map +1 -1
  95. package/build/src/context/context.js +9 -10
  96. package/build/src/context/context.js.map +1 -1
  97. package/build/src/context-api.d.ts +4 -0
  98. package/build/src/{diag/index.js → context-api.js} +7 -13
  99. package/build/src/context-api.js.map +1 -0
  100. package/build/src/diag/ComponentLogger.js +16 -37
  101. package/build/src/diag/ComponentLogger.js.map +1 -1
  102. package/build/src/diag/consoleLogger.js +7 -12
  103. package/build/src/diag/consoleLogger.js.map +1 -1
  104. package/build/src/diag/internal/logLevelLogger.js +2 -2
  105. package/build/src/diag/internal/logLevelLogger.js.map +1 -1
  106. package/build/src/diag/types.d.ts +30 -0
  107. package/build/src/diag/types.js.map +1 -1
  108. package/build/src/diag-api.d.ts +9 -0
  109. package/build/src/diag-api.js +29 -0
  110. package/build/src/diag-api.js.map +1 -0
  111. package/build/src/index.d.ts +44 -48
  112. package/build/src/index.js +49 -56
  113. package/build/src/index.js.map +1 -1
  114. package/build/src/internal/global-utils.d.ts +3 -1
  115. package/build/src/internal/global-utils.js +15 -16
  116. package/build/src/internal/global-utils.js.map +1 -1
  117. package/build/src/internal/semver.js +9 -9
  118. package/build/src/internal/semver.js.map +1 -1
  119. package/build/src/metrics/Meter.d.ts +104 -0
  120. package/build/src/metrics/Meter.js +18 -0
  121. package/build/src/metrics/Meter.js.map +1 -0
  122. package/build/src/metrics/MeterProvider.d.ts +17 -0
  123. package/build/src/metrics/MeterProvider.js +18 -0
  124. package/build/src/metrics/MeterProvider.js.map +1 -0
  125. package/build/src/metrics/Metric.d.ts +93 -0
  126. package/build/src/metrics/Metric.js +25 -0
  127. package/build/src/metrics/Metric.js.map +1 -0
  128. package/build/src/metrics/NoopMeter.d.ts +74 -0
  129. package/build/src/metrics/NoopMeter.js +116 -0
  130. package/build/src/metrics/NoopMeter.js.map +1 -0
  131. package/build/src/metrics/NoopMeterProvider.d.ts +11 -0
  132. package/build/src/metrics/NoopMeterProvider.js +31 -0
  133. package/build/src/metrics/NoopMeterProvider.js.map +1 -0
  134. package/build/src/metrics/ObservableResult.d.ts +31 -0
  135. package/build/src/metrics/ObservableResult.js +18 -0
  136. package/build/src/metrics/ObservableResult.js.map +1 -0
  137. package/build/src/metrics-api.d.ts +4 -0
  138. package/build/src/metrics-api.js +24 -0
  139. package/build/src/metrics-api.js.map +1 -0
  140. package/build/src/platform/browser/globalThis.js +10 -7
  141. package/build/src/platform/browser/globalThis.js.map +1 -1
  142. package/build/src/propagation/NoopTextMapPropagator.js +7 -10
  143. package/build/src/propagation/NoopTextMapPropagator.js.map +1 -1
  144. package/build/src/propagation/TextMapPropagator.js +3 -3
  145. package/build/src/propagation/TextMapPropagator.js.map +1 -1
  146. package/build/src/propagation-api.d.ts +4 -0
  147. package/build/src/propagation-api.js +24 -0
  148. package/build/src/propagation-api.js.map +1 -0
  149. package/build/src/trace/NonRecordingSpan.js +20 -22
  150. package/build/src/trace/NonRecordingSpan.js.map +1 -1
  151. package/build/src/trace/NoopTracer.js +21 -24
  152. package/build/src/trace/NoopTracer.js.map +1 -1
  153. package/build/src/trace/NoopTracerProvider.js +5 -8
  154. package/build/src/trace/NoopTracerProvider.js.map +1 -1
  155. package/build/src/trace/ProxyTracer.js +13 -14
  156. package/build/src/trace/ProxyTracer.js.map +1 -1
  157. package/build/src/trace/ProxyTracerProvider.js +13 -16
  158. package/build/src/trace/ProxyTracerProvider.js.map +1 -1
  159. package/build/src/trace/context-utils.js +4 -4
  160. package/build/src/trace/context-utils.js.map +1 -1
  161. package/build/src/trace/internal/tracestate-impl.js +33 -35
  162. package/build/src/trace/internal/tracestate-impl.js.map +1 -1
  163. package/build/src/trace/internal/tracestate-validators.js +6 -6
  164. package/build/src/trace/internal/tracestate-validators.js.map +1 -1
  165. package/build/src/trace/internal/utils.js +1 -1
  166. package/build/src/trace/internal/utils.js.map +1 -1
  167. package/build/src/trace/invalid-span-constants.js +1 -1
  168. package/build/src/trace/invalid-span-constants.js.map +1 -1
  169. package/build/src/trace/spancontext-utils.js +4 -4
  170. package/build/src/trace/spancontext-utils.js.map +1 -1
  171. package/build/src/trace-api.d.ts +4 -0
  172. package/build/src/trace-api.js +24 -0
  173. package/build/src/{diag/index.js.map → trace-api.js.map} +1 -1
  174. package/build/src/version.d.ts +1 -1
  175. package/build/src/version.js +1 -1
  176. package/build/src/version.js.map +1 -1
  177. package/package.json +36 -35
  178. package/CHANGELOG.md +0 -212
  179. package/build/esm/diag/index.d.ts +0 -3
  180. package/build/esm/diag/index.js.map +0 -1
  181. package/build/src/diag/index.d.ts +0 -3
@@ -1 +1 @@
1
- {"version":3,"file":"tracestate-validators.js","sourceRoot":"","sources":["../../../../src/trace/internal/tracestate-validators.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,IAAM,oBAAoB,GAAG,cAAc,CAAC;AAC5C,IAAM,SAAS,GAAG,UAAQ,oBAAoB,YAAS,CAAC;AACxD,IAAM,gBAAgB,GAAG,aAAW,oBAAoB,qBAAgB,oBAAoB,WAAQ,CAAC;AACrG,IAAM,eAAe,GAAG,IAAI,MAAM,CAAC,SAAO,SAAS,SAAI,gBAAgB,OAAI,CAAC,CAAC;AAC7E,IAAM,sBAAsB,GAAG,qBAAqB,CAAC;AACrD,IAAM,+BAA+B,GAAG,KAAK,CAAC;AAE9C;;;;;;;GAOG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACnC,CAAC;AAFD,kCAEC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAAC,KAAa;IACzC,OAAO,CACL,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC;QAClC,CAAC,+BAA+B,CAAC,IAAI,CAAC,KAAK,CAAC,CAC7C,CAAC;AACJ,CAAC;AALD,sCAKC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst VALID_KEY_CHAR_RANGE = '[_0-9a-z-*/]';\nconst VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`;\nconst VALID_VENDOR_KEY = `[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`;\nconst VALID_KEY_REGEX = new RegExp(`^(?:${VALID_KEY}|${VALID_VENDOR_KEY})$`);\nconst VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;\nconst INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;\n\n/**\n * Key is opaque string up to 256 characters printable. It MUST begin with a\n * lowercase letter, and can only contain lowercase letters a-z, digits 0-9,\n * underscores _, dashes -, asterisks *, and forward slashes /.\n * For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the\n * vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.\n * see https://www.w3.org/TR/trace-context/#key\n */\nexport function validateKey(key: string): boolean {\n return VALID_KEY_REGEX.test(key);\n}\n\n/**\n * Value is opaque string up to 256 characters printable ASCII RFC0020\n * characters (i.e., the range 0x20 to 0x7E) except comma , and =.\n */\nexport function validateValue(value: string): boolean {\n return (\n VALID_VALUE_BASE_REGEX.test(value) &&\n !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value)\n );\n}\n"]}
1
+ {"version":3,"file":"tracestate-validators.js","sourceRoot":"","sources":["../../../../src/trace/internal/tracestate-validators.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAC5C,MAAM,SAAS,GAAG,QAAQ,oBAAoB,SAAS,CAAC;AACxD,MAAM,gBAAgB,GAAG,WAAW,oBAAoB,gBAAgB,oBAAoB,QAAQ,CAAC;AACrG,MAAM,eAAe,GAAG,IAAI,MAAM,CAAC,OAAO,SAAS,IAAI,gBAAgB,IAAI,CAAC,CAAC;AAC7E,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AACrD,MAAM,+BAA+B,GAAG,KAAK,CAAC;AAE9C;;;;;;;GAOG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACnC,CAAC;AAFD,kCAEC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAAC,KAAa;IACzC,OAAO,CACL,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC;QAClC,CAAC,+BAA+B,CAAC,IAAI,CAAC,KAAK,CAAC,CAC7C,CAAC;AACJ,CAAC;AALD,sCAKC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst VALID_KEY_CHAR_RANGE = '[_0-9a-z-*/]';\nconst VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`;\nconst VALID_VENDOR_KEY = `[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`;\nconst VALID_KEY_REGEX = new RegExp(`^(?:${VALID_KEY}|${VALID_VENDOR_KEY})$`);\nconst VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;\nconst INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;\n\n/**\n * Key is opaque string up to 256 characters printable. It MUST begin with a\n * lowercase letter, and can only contain lowercase letters a-z, digits 0-9,\n * underscores _, dashes -, asterisks *, and forward slashes /.\n * For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the\n * vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.\n * see https://www.w3.org/TR/trace-context/#key\n */\nexport function validateKey(key: string): boolean {\n return VALID_KEY_REGEX.test(key);\n}\n\n/**\n * Value is opaque string up to 256 characters printable ASCII RFC0020\n * characters (i.e., the range 0x20 to 0x7E) except comma , and =.\n */\nexport function validateValue(value: string): boolean {\n return (\n VALID_VALUE_BASE_REGEX.test(value) &&\n !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value)\n );\n}\n"]}
@@ -16,7 +16,7 @@
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.createTraceState = void 0;
19
- var tracestate_impl_1 = require("./tracestate-impl");
19
+ const tracestate_impl_1 = require("./tracestate-impl");
20
20
  function createTraceState(rawTraceState) {
21
21
  return new tracestate_impl_1.TraceStateImpl(rawTraceState);
22
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/trace/internal/utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,qDAAmD;AAGnD,SAAgB,gBAAgB,CAAC,aAAsB;IACrD,OAAO,IAAI,gCAAc,CAAC,aAAa,CAAC,CAAC;AAC3C,CAAC;AAFD,4CAEC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TraceState } from '../trace_state';\nimport { TraceStateImpl } from './tracestate-impl';\n\n\nexport function createTraceState(rawTraceState?: string): TraceState {\n return new TraceStateImpl(rawTraceState);\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/trace/internal/utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,uDAAmD;AAEnD,SAAgB,gBAAgB,CAAC,aAAsB;IACrD,OAAO,IAAI,gCAAc,CAAC,aAAa,CAAC,CAAC;AAC3C,CAAC;AAFD,4CAEC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TraceState } from '../trace_state';\nimport { TraceStateImpl } from './tracestate-impl';\n\nexport function createTraceState(rawTraceState?: string): TraceState {\n return new TraceStateImpl(rawTraceState);\n}\n"]}
@@ -16,7 +16,7 @@
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = void 0;
19
- var trace_flags_1 = require("./trace_flags");
19
+ const trace_flags_1 = require("./trace_flags");
20
20
  exports.INVALID_SPANID = '0000000000000000';
21
21
  exports.INVALID_TRACEID = '00000000000000000000000000000000';
22
22
  exports.INVALID_SPAN_CONTEXT = {
@@ -1 +1 @@
1
- {"version":3,"file":"invalid-span-constants.js","sourceRoot":"","sources":["../../../src/trace/invalid-span-constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,6CAA2C;AAE9B,QAAA,cAAc,GAAG,kBAAkB,CAAC;AACpC,QAAA,eAAe,GAAG,kCAAkC,CAAC;AACrD,QAAA,oBAAoB,GAAgB;IAC/C,OAAO,EAAE,uBAAe;IACxB,MAAM,EAAE,sBAAc;IACtB,UAAU,EAAE,wBAAU,CAAC,IAAI;CAC5B,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { SpanContext } from './span_context';\nimport { TraceFlags } from './trace_flags';\n\nexport const INVALID_SPANID = '0000000000000000';\nexport const INVALID_TRACEID = '00000000000000000000000000000000';\nexport const INVALID_SPAN_CONTEXT: SpanContext = {\n traceId: INVALID_TRACEID,\n spanId: INVALID_SPANID,\n traceFlags: TraceFlags.NONE,\n};\n"]}
1
+ {"version":3,"file":"invalid-span-constants.js","sourceRoot":"","sources":["../../../src/trace/invalid-span-constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,+CAA2C;AAE9B,QAAA,cAAc,GAAG,kBAAkB,CAAC;AACpC,QAAA,eAAe,GAAG,kCAAkC,CAAC;AACrD,QAAA,oBAAoB,GAAgB;IAC/C,OAAO,EAAE,uBAAe;IACxB,MAAM,EAAE,sBAAc;IACtB,UAAU,EAAE,wBAAU,CAAC,IAAI;CAC5B,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { SpanContext } from './span_context';\nimport { TraceFlags } from './trace_flags';\n\nexport const INVALID_SPANID = '0000000000000000';\nexport const INVALID_TRACEID = '00000000000000000000000000000000';\nexport const INVALID_SPAN_CONTEXT: SpanContext = {\n traceId: INVALID_TRACEID,\n spanId: INVALID_SPANID,\n traceFlags: TraceFlags.NONE,\n};\n"]}
@@ -16,10 +16,10 @@ exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = e
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  */
19
- var invalid_span_constants_1 = require("./invalid-span-constants");
20
- var NonRecordingSpan_1 = require("./NonRecordingSpan");
21
- var VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i;
22
- var VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i;
19
+ const invalid_span_constants_1 = require("./invalid-span-constants");
20
+ const NonRecordingSpan_1 = require("./NonRecordingSpan");
21
+ const VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i;
22
+ const VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i;
23
23
  function isValidTraceId(traceId) {
24
24
  return VALID_TRACEID_REGEX.test(traceId) && traceId !== invalid_span_constants_1.INVALID_TRACEID;
25
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"spancontext-utils.js","sourceRoot":"","sources":["../../../src/trace/spancontext-utils.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,mEAA2E;AAC3E,uDAAsD;AAItD,IAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAChD,IAAM,kBAAkB,GAAG,iBAAiB,CAAC;AAE7C,SAAgB,cAAc,CAAC,OAAe;IAC5C,OAAO,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,OAAO,KAAK,wCAAe,CAAC;AAC1E,CAAC;AAFD,wCAEC;AAED,SAAgB,aAAa,CAAC,MAAc;IAC1C,OAAO,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,MAAM,KAAK,uCAAc,CAAC;AACtE,CAAC;AAFD,sCAEC;AAED;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,WAAwB;IACzD,OAAO,CACL,cAAc,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,CACzE,CAAC;AACJ,CAAC;AAJD,gDAIC;AAED;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,WAAwB;IACtD,OAAO,IAAI,mCAAgB,CAAC,WAAW,CAAC,CAAC;AAC3C,CAAC;AAFD,0CAEC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { INVALID_SPANID, INVALID_TRACEID } from './invalid-span-constants';\nimport { NonRecordingSpan } from './NonRecordingSpan';\nimport { Span } from './span';\nimport { SpanContext } from './span_context';\n\nconst VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i;\nconst VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i;\n\nexport function isValidTraceId(traceId: string): boolean {\n return VALID_TRACEID_REGEX.test(traceId) && traceId !== INVALID_TRACEID;\n}\n\nexport function isValidSpanId(spanId: string): boolean {\n return VALID_SPANID_REGEX.test(spanId) && spanId !== INVALID_SPANID;\n}\n\n/**\n * Returns true if this {@link SpanContext} is valid.\n * @return true if this {@link SpanContext} is valid.\n */\nexport function isSpanContextValid(spanContext: SpanContext): boolean {\n return (\n isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId)\n );\n}\n\n/**\n * Wrap the given {@link SpanContext} in a new non-recording {@link Span}\n *\n * @param spanContext span context to be wrapped\n * @returns a new non-recording {@link Span} with the provided context\n */\nexport function wrapSpanContext(spanContext: SpanContext): Span {\n return new NonRecordingSpan(spanContext);\n}\n"]}
1
+ {"version":3,"file":"spancontext-utils.js","sourceRoot":"","sources":["../../../src/trace/spancontext-utils.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,qEAA2E;AAC3E,yDAAsD;AAItD,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAChD,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AAE7C,SAAgB,cAAc,CAAC,OAAe;IAC5C,OAAO,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,OAAO,KAAK,wCAAe,CAAC;AAC1E,CAAC;AAFD,wCAEC;AAED,SAAgB,aAAa,CAAC,MAAc;IAC1C,OAAO,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,MAAM,KAAK,uCAAc,CAAC;AACtE,CAAC;AAFD,sCAEC;AAED;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,WAAwB;IACzD,OAAO,CACL,cAAc,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,CACzE,CAAC;AACJ,CAAC;AAJD,gDAIC;AAED;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,WAAwB;IACtD,OAAO,IAAI,mCAAgB,CAAC,WAAW,CAAC,CAAC;AAC3C,CAAC;AAFD,0CAEC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { INVALID_SPANID, INVALID_TRACEID } from './invalid-span-constants';\nimport { NonRecordingSpan } from './NonRecordingSpan';\nimport { Span } from './span';\nimport { SpanContext } from './span_context';\n\nconst VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i;\nconst VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i;\n\nexport function isValidTraceId(traceId: string): boolean {\n return VALID_TRACEID_REGEX.test(traceId) && traceId !== INVALID_TRACEID;\n}\n\nexport function isValidSpanId(spanId: string): boolean {\n return VALID_SPANID_REGEX.test(spanId) && spanId !== INVALID_SPANID;\n}\n\n/**\n * Returns true if this {@link SpanContext} is valid.\n * @return true if this {@link SpanContext} is valid.\n */\nexport function isSpanContextValid(spanContext: SpanContext): boolean {\n return (\n isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId)\n );\n}\n\n/**\n * Wrap the given {@link SpanContext} in a new non-recording {@link Span}\n *\n * @param spanContext span context to be wrapped\n * @returns a new non-recording {@link Span} with the provided context\n */\nexport function wrapSpanContext(spanContext: SpanContext): Span {\n return new NonRecordingSpan(spanContext);\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import { TraceAPI } from './api/trace';
2
+ /** Entrypoint for trace API */
3
+ export declare const trace: TraceAPI;
4
+ //# sourceMappingURL=trace-api.d.ts.map
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright The OpenTelemetry Authors
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * https://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.trace = void 0;
19
+ // Split module-level variable definition into separate files to allow
20
+ // tree-shaking on each api instance.
21
+ const trace_1 = require("./api/trace");
22
+ /** Entrypoint for trace API */
23
+ exports.trace = trace_1.TraceAPI.getInstance();
24
+ //# sourceMappingURL=trace-api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/diag/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;AAEH,kDAAgC;AAChC,0CAAwB","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './consoleLogger';\nexport * from './types';\n"]}
1
+ {"version":3,"file":"trace-api.js","sourceRoot":"","sources":["../../src/trace-api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,sEAAsE;AACtE,qCAAqC;AACrC,uCAAuC;AACvC,+BAA+B;AAClB,QAAA,KAAK,GAAG,gBAAQ,CAAC,WAAW,EAAE,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// Split module-level variable definition into separate files to allow\n// tree-shaking on each api instance.\nimport { TraceAPI } from './api/trace';\n/** Entrypoint for trace API */\nexport const trace = TraceAPI.getInstance();\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.2.0";
1
+ export declare const VERSION = "1.4.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -17,5 +17,5 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.VERSION = void 0;
19
19
  // this is autogenerated file, see scripts/version-update.js
20
- exports.VERSION = '1.2.0';
20
+ exports.VERSION = '1.4.0';
21
21
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,OAAO,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '1.2.0';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,OAAO,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '1.4.0';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentelemetry/api",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "Public API for OpenTelemetry",
5
5
  "main": "build/src/index.js",
6
6
  "module": "build/esm/index.js",
@@ -10,24 +10,27 @@
10
10
  "./build/esm/platform/index.js": "./build/esm/platform/browser/index.js",
11
11
  "./build/src/platform/index.js": "./build/src/platform/browser/index.js"
12
12
  },
13
- "repository": "https://github.com/open-telemetry/opentelemetry-js-api.git",
13
+ "repository": "open-telemetry/opentelemetry-js",
14
14
  "scripts": {
15
- "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json",
16
- "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p .",
17
- "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p .",
18
- "precompile": "npm run version",
19
- "compile": "tsc --build tsconfig.json tsconfig.esm.json",
15
+ "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
16
+ "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../",
17
+ "codecov:webworker": "nyc report --reporter=json && codecov -f coverage/*.json -p ../",
18
+ "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../",
19
+ "precompile": "lerna run version --scope $(npm pkg get name) --include-dependencies",
20
+ "compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
20
21
  "docs": "typedoc",
21
22
  "docs:deploy": "gh-pages --dist docs/out",
22
23
  "docs:test": "linkinator docs/out --silent && linkinator docs/*.md *.md --markdown --silent",
23
- "lint:fix": "eslint src test --ext .ts --fix",
24
- "lint": "eslint src test --ext .ts",
24
+ "lint:fix": "eslint . --ext .ts --fix",
25
+ "lint": "eslint . --ext .ts",
25
26
  "test:browser": "nyc karma start --single-run",
26
- "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts",
27
+ "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",
28
+ "test:webworker": "nyc karma start karma.worker.js --single-run",
27
29
  "cycle-check": "dpdm --exit-code circular:1 src/index.ts",
28
- "version": "node scripts/version-update.js",
29
- "prewatch": "npm run version",
30
- "watch": "tsc --build --watch"
30
+ "version": "node ../scripts/version-update.js",
31
+ "prewatch": "npm run precompile",
32
+ "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
33
+ "peer-api-check": "node ../scripts/peer-api-check.js"
31
34
  },
32
35
  "keywords": [
33
36
  "opentelemetry",
@@ -57,34 +60,32 @@
57
60
  "access": "public"
58
61
  },
59
62
  "devDependencies": {
60
- "@types/mocha": "8.2.2",
61
- "@types/node": "14.17.4",
62
- "@types/sinon": "10.0.2",
63
- "@types/webpack-env": "1.16.0",
64
- "@typescript-eslint/eslint-plugin": "5.0.0",
65
- "@typescript-eslint/parser": "5.0.0",
66
- "codecov": "3.8.2",
67
- "dpdm": "3.7.1",
68
- "eslint": "7.32.0",
69
- "eslint-plugin-header": "3.1.1",
70
- "eslint-plugin-node": "11.1.0",
71
- "gh-pages": "3.2.0",
63
+ "@types/mocha": "10.0.0",
64
+ "@types/node": "18.6.5",
65
+ "@types/sinon": "10.0.13",
66
+ "@types/webpack": "4.41.26",
67
+ "@types/webpack-env": "1.16.3",
68
+ "codecov": "3.8.3",
69
+ "dpdm": "3.10.0",
72
70
  "istanbul-instrumenter-loader": "3.0.1",
73
- "karma": "5.2.3",
71
+ "karma": "6.3.16",
74
72
  "karma-chrome-launcher": "3.1.0",
75
73
  "karma-coverage-istanbul-reporter": "3.0.3",
76
74
  "karma-mocha": "2.0.1",
75
+ "karma-mocha-webworker": "1.3.0",
77
76
  "karma-spec-reporter": "0.0.32",
78
77
  "karma-webpack": "4.0.2",
79
- "lerna-changelog": "1.0.1",
80
- "linkinator": "2.13.6",
81
- "mocha": "7.2.0",
78
+ "memfs": "3.4.9",
79
+ "mocha": "10.0.0",
82
80
  "nyc": "15.1.0",
83
- "sinon": "11.1.1",
84
- "ts-loader": "8.2.0",
85
- "ts-mocha": "8.0.0",
86
- "typedoc": "0.21.2",
87
- "typescript": "4.3.5",
81
+ "sinon": "15.0.0",
82
+ "ts-loader": "8.4.0",
83
+ "ts-mocha": "10.0.0",
84
+ "typescript": "4.4.4",
85
+ "unionfs": "4.4.0",
88
86
  "webpack": "4.46.0"
89
- }
87
+ },
88
+ "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/api",
89
+ "sideEffects": false,
90
+ "gitHead": "08f597f3a3d71a4852b0afbba120af15ca038121"
90
91
  }
package/CHANGELOG.md DELETED
@@ -1,212 +0,0 @@
1
- # CHANGELOG
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- ## [1.2.0](https://www.github.com/open-telemetry/opentelemetry-js-api/compare/v1.1.0...v1.2.0) (2022-08-09)
6
-
7
-
8
- ### Features
9
-
10
- * Add getActiveSpan to trace API ([#163](https://www.github.com/open-telemetry/opentelemetry-js-api/issues/163)) ([17ccb3a](https://www.github.com/open-telemetry/opentelemetry-js-api/commit/17ccb3a4e385bc5769ded6fc742c9782a93244a5))
11
- * deprecate Sampler ([#166](https://www.github.com/open-telemetry/opentelemetry-js-api/issues/166)) ([313b2e2](https://www.github.com/open-telemetry/opentelemetry-js-api/commit/313b2e2225f246a6a9518ec4da6942f7d61babce))
12
-
13
- ## [1.1.0](https://www.github.com/open-telemetry/opentelemetry-js-api/compare/v1.0.4...v1.1.0) (2022-01-25)
14
-
15
-
16
- ### Features
17
-
18
- * add tracestate implementation to api ([#147](https://www.github.com/open-telemetry/opentelemetry-js-api/issues/147)) ([82842c7](https://www.github.com/open-telemetry/opentelemetry-js-api/commit/82842c7097614e6ece99e73838ac5e94ff5460b7))
19
- * define common attributes type ([#142](https://www.github.com/open-telemetry/opentelemetry-js-api/issues/142)) ([ae9bead](https://www.github.com/open-telemetry/opentelemetry-js-api/commit/ae9bead17750d35dec4b63cfae098087666abc85))
20
- * **trace:** add optional schema url to TracerProvider.getTracer ([#129](https://www.github.com/open-telemetry/opentelemetry-js-api/issues/129)) ([aa65fc6](https://www.github.com/open-telemetry/opentelemetry-js-api/commit/aa65fc66809d45090d6e4951c265386d17ccc6f6))
21
-
22
-
23
- ### Bug Fixes
24
-
25
- * export tracer options ([#154](https://www.github.com/open-telemetry/opentelemetry-js-api/issues/154)) ([b125324](https://www.github.com/open-telemetry/opentelemetry-js-api/commit/b125324438fb2f24eb80c7c6673afc8cfc99575e))
26
-
27
- ### [1.0.4](https://www.github.com/open-telemetry/opentelemetry-js-api/compare/v1.0.3...v1.0.4) (2021-12-18)
28
-
29
-
30
- ### Bug Fixes
31
-
32
- * align globalThis fallbacks with otel-core ([#126](https://www.github.com/open-telemetry/opentelemetry-js-api/issues/126)) ([3507de7](https://www.github.com/open-telemetry/opentelemetry-js-api/commit/3507de7c3b95396696657c021953b0b24a63a029))
33
-
34
- ### [1.0.3](https://www.github.com/open-telemetry/opentelemetry-js-api/compare/v1.0.2...v1.0.3) (2021-08-30)
35
-
36
-
37
- ### Bug Fixes
38
-
39
- * remove all circular dependencies ([#119](https://www.github.com/open-telemetry/opentelemetry-js-api/issues/119)) ([a8083e8](https://www.github.com/open-telemetry/opentelemetry-js-api/commit/a8083e84b23227828745da80fd5fe512357dd34b))
40
-
41
- ## 1.0.2
42
-
43
- ### :bug: Bug Fix
44
-
45
- * [#105](https://github.com/open-telemetry/opentelemetry-js-api/pull/105) fix: set delegate after successful registration ([@Flarna](https://github.com/Flarna))
46
- * [#94](https://github.com/open-telemetry/opentelemetry-js-api/pull/94) fix: enforce strict equality on prerelease versions ([@dyladan](https://github.com/dyladan))
47
-
48
- ### :memo: Documentation
49
-
50
- * [#106](https://github.com/open-telemetry/opentelemetry-js-api/pull/106) docs: fix crash in README example ([@trentm](https://github.com/trentm))
51
- * [#101](https://github.com/open-telemetry/opentelemetry-js-api/pull/101) docs: Format example for tracer.startActiveSpan ([@ad-m](https://github.com/ad-m))
52
- * [#99](https://github.com/open-telemetry/opentelemetry-js-api/pull/99) chore: fix link to API docs ([@dyladan](https://github.com/dyladan))
53
-
54
- ### :house: Internal
55
-
56
- * [#109](https://github.com/open-telemetry/opentelemetry-js-api/pull/109) internal: add missing approvers from core ([@dyladan](https://github.com/dyladan))
57
- * [#103](https://github.com/open-telemetry/opentelemetry-js-api/pull/103) chore: reuse NoopTracer in ProxyTracer ([@Flarna](https://github.com/Flarna))
58
-
59
- ### Committers: 4
60
-
61
- * Adam Dobrawy ([@ad-m](https://github.com/ad-m))
62
- * Daniel Dyla ([@dyladan](https://github.com/dyladan))
63
- * Gerhard Stöbich ([@Flarna](https://github.com/Flarna))
64
- * Trent Mick ([@trentm](https://github.com/trentm))
65
-
66
- ## 1.0.1
67
-
68
- ### :bug: Bug Fix
69
-
70
- * [#96](https://github.com/open-telemetry/opentelemetry-js-api/pull/96) chore: remove circular dependency ([@dyladan](https://github.com/dyladan))
71
-
72
- ### Committers: 1
73
-
74
- * Daniel Dyla ([@dyladan](https://github.com/dyladan))
75
-
76
- ## 1.0.0
77
-
78
- ### :memo: Documentation
79
-
80
- * [#89](https://github.com/open-telemetry/opentelemetry-js-api/pull/89) chore: update upgrade guidelines ([@dyladan](https://github.com/dyladan))
81
-
82
- ### :house: Internal
83
-
84
- * [#90](https://github.com/open-telemetry/opentelemetry-js-api/pull/90) chore: enable typescript 4.3 noImplicitOverride option ([@Flarna](https://github.com/Flarna))
85
-
86
- ### Committers: 2
87
-
88
- * Daniel Dyla ([@dyladan](https://github.com/dyladan))
89
- * Gerhard Stöbich ([@Flarna](https://github.com/Flarna))
90
-
91
- ## 0.21.0
92
-
93
- ### :boom: Breaking Change
94
-
95
- * [#78](https://github.com/open-telemetry/opentelemetry-js-api/pull/78) feat: unify signatures of `with` and `bind` ([@Rauno56](https://github.com/Rauno56))
96
- * [#46](https://github.com/open-telemetry/opentelemetry-js-api/pull/46) chore: do not export singletons ([@dyladan](https://github.com/dyladan))
97
-
98
- ### :rocket: Enhancement
99
-
100
- * [#81](https://github.com/open-telemetry/opentelemetry-js-api/pull/81) chore: function overloads implementation of startActiveSpan in noop t… ([@naseemkullah](https://github.com/naseemkullah))
101
-
102
- ### :house: Internal
103
-
104
- * [#84](https://github.com/open-telemetry/opentelemetry-js-api/pull/84) chore: remove unused backwards compatibility folder ([@Flarna](https://github.com/Flarna))
105
- * [#85](https://github.com/open-telemetry/opentelemetry-js-api/pull/85) chore: add node:16 to the test matrix ([@Rauno56](https://github.com/Rauno56))
106
- * [#63](https://github.com/open-telemetry/opentelemetry-js-api/pull/63) feat: debug log global registrations and logger overwrites ([@Rauno56](https://github.com/Rauno56))
107
- * [#75](https://github.com/open-telemetry/opentelemetry-js-api/pull/75) Add CodeQL Security Scan ([@xukaren](https://github.com/xukaren))
108
- * [#79](https://github.com/open-telemetry/opentelemetry-js-api/pull/79) chore: fix eslint config ([@Rauno56](https://github.com/Rauno56))
109
-
110
- ### Committers: 5
111
-
112
- * Daniel Dyla ([@dyladan](https://github.com/dyladan))
113
- * Gerhard Stöbich ([@Flarna](https://github.com/Flarna))
114
- * Karen Xu ([@xukaren](https://github.com/xukaren))
115
- * Naseem ([@naseemkullah](https://github.com/naseemkullah))
116
- * Rauno Viskus ([@Rauno56](https://github.com/Rauno56))
117
-
118
- ## 0.20.0
119
-
120
- ### :rocket: Enhancement
121
-
122
- * [#69](https://github.com/open-telemetry/opentelemetry-js-api/pull/69) feat(context): add utils method to remove keys from context ([@vmarchaud](https://github.com/vmarchaud))
123
- * [#71](https://github.com/open-telemetry/opentelemetry-js-api/pull/71) chore: export baggage ([@dyladan](https://github.com/dyladan))
124
-
125
- ### Committers: 2
126
-
127
- * Daniel Dyla ([@dyladan](https://github.com/dyladan))
128
- * Valentin Marchaud ([@vmarchaud](https://github.com/vmarchaud))
129
-
130
- ## 0.19.0
131
-
132
- ### :boom: Breaking Change
133
-
134
- * [#55](https://github.com/open-telemetry/opentelemetry-js-api/pull/55) chore: move baggage methods in propagation namespace ([@vmarchaud](https://github.com/vmarchaud))
135
- * [#65](https://github.com/open-telemetry/opentelemetry-js-api/pull/65) chore: remove suppress instrumentation ([@dyladan](https://github.com/dyladan))
136
- * [#60](https://github.com/open-telemetry/opentelemetry-js-api/pull/60) chore: removing timed event ([@obecny](https://github.com/obecny))
137
- * [#58](https://github.com/open-telemetry/opentelemetry-js-api/pull/58) chore: use spancontext for link ([@dyladan](https://github.com/dyladan))
138
- * [#47](https://github.com/open-telemetry/opentelemetry-js-api/pull/47) chore: move span method for context in trace API #40 ([@vmarchaud](https://github.com/vmarchaud))
139
- * [#45](https://github.com/open-telemetry/opentelemetry-js-api/pull/45) chore: rename `span#context()` to `span#spanContext` ([@dyladan](https://github.com/dyladan))
140
- * [#43](https://github.com/open-telemetry/opentelemetry-js-api/pull/43) chore: renaming noop span to non recording span ([@obecny](https://github.com/obecny))
141
- * [#32](https://github.com/open-telemetry/opentelemetry-js-api/pull/32) feat!: return boolean success value from setGlobalXXX methods ([@dyladan](https://github.com/dyladan))
142
-
143
- ### :rocket: Enhancement
144
-
145
- * [#62](https://github.com/open-telemetry/opentelemetry-js-api/pull/62) chore: adding component logger ([@obecny](https://github.com/obecny))
146
- * [#54](https://github.com/open-telemetry/opentelemetry-js-api/pull/54) feat: add tracer.startActiveSpan() ([@naseemkullah](https://github.com/naseemkullah))
147
- * [#58](https://github.com/open-telemetry/opentelemetry-js-api/pull/58) chore: use spancontext for link ([@dyladan](https://github.com/dyladan))
148
- * [#51](https://github.com/open-telemetry/opentelemetry-js-api/pull/51) feat: add function to wrap SpanContext in NonRecordingSpan #49 ([@dyladan](https://github.com/dyladan))
149
-
150
- ### :memo: Documentation
151
-
152
- * [#64](https://github.com/open-telemetry/opentelemetry-js-api/pull/64) chore: document the reason for symbol.for ([@dyladan](https://github.com/dyladan))
153
- * [#44](https://github.com/open-telemetry/opentelemetry-js-api/pull/44) chore: updating readme headline and fixing links ([@obecny](https://github.com/obecny))
154
-
155
- ### Committers: 6
156
-
157
- * Bartlomiej Obecny ([@obecny](https://github.com/obecny))
158
- * Daniel Dyla ([@dyladan](https://github.com/dyladan))
159
- * Gerhard Stöbich ([@Flarna](https://github.com/Flarna))
160
- * Naseem ([@naseemkullah](https://github.com/naseemkullah))
161
- * Valentin Marchaud ([@vmarchaud](https://github.com/vmarchaud))
162
- * t2t2 ([@t2t2](https://github.com/t2t2))
163
-
164
- ## 1.0.0-rc.0
165
-
166
- ### :memo: Documentation
167
-
168
- * [#20](https://github.com/open-telemetry/opentelemetry-js-api/pull/20) docs: document latest manual tracing ([@dyladan](https://github.com/dyladan))
169
- * [#18](https://github.com/open-telemetry/opentelemetry-js-api/pull/18) chore: deploy docs on a release ([@dyladan](https://github.com/dyladan))
170
- * [#19](https://github.com/open-telemetry/opentelemetry-js-api/pull/19) docs: fix readme links ([@dyladan](https://github.com/dyladan))
171
-
172
- ### Committers: 1
173
-
174
- * Daniel Dyla ([@dyladan](https://github.com/dyladan))
175
-
176
- ## 0.18.1
177
-
178
- ### :bug: Bug Fix
179
-
180
- * [#16](https://github.com/open-telemetry/opentelemetry-js-api/pull/16) fix: Reverse the direction of the semver check ([@dyladan](https://github.com/dyladan))
181
-
182
- ### Committers: 1
183
-
184
- * Daniel Dyla ([@dyladan](https://github.com/dyladan))
185
-
186
- ## v0.18.0
187
-
188
- ### :boom: Breaking Change
189
-
190
- * [#9](https://github.com/open-telemetry/opentelemetry-js-api/pull/9) chore: refactor diag logger ([@dyladan](https://github.com/dyladan))
191
-
192
- ### :rocket: Enhancement
193
-
194
- * [#10](https://github.com/open-telemetry/opentelemetry-js-api/pull/10) Use semver to determine API compatibility ([@dyladan](https://github.com/dyladan))
195
-
196
- ### :house: Internal
197
-
198
- * [#12](https://github.com/open-telemetry/opentelemetry-js-api/pull/12) chore: don't disable rule eqeqeq ([@Flarna](https://github.com/Flarna))
199
- * [#8](https://github.com/open-telemetry/opentelemetry-js-api/pull/8) chore: remove nycrc in favor of tsconfig reporting ([@dyladan](https://github.com/dyladan))
200
- * [#3](https://github.com/open-telemetry/opentelemetry-js-api/pull/3) chore: add test workflow ([@dyladan](https://github.com/dyladan))
201
- * [#4](https://github.com/open-telemetry/opentelemetry-js-api/pull/4) chore: remove package lock ([@dyladan](https://github.com/dyladan))
202
- * [#2](https://github.com/open-telemetry/opentelemetry-js-api/pull/2) chore: add lint workflow ([@dyladan](https://github.com/dyladan))
203
-
204
- ### Committers: 2
205
-
206
- * Daniel Dyla ([@dyladan](https://github.com/dyladan))
207
- * Gerhard Stöbich ([@Flarna](https://github.com/Flarna))
208
-
209
- ## v0.17.0
210
-
211
- Versions previous to `0.18.0` were developed in another repository.
212
- To see previous changelog entries see the [CHANGELOG.md](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md).
@@ -1,3 +0,0 @@
1
- export * from './consoleLogger';
2
- export * from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/diag/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './consoleLogger';\nexport * from './types';\n"]}
@@ -1,3 +0,0 @@
1
- export * from './consoleLogger';
2
- export * from './types';
3
- //# sourceMappingURL=index.d.ts.map