@opentelemetry/api 0.21.0 → 1.0.0-rc.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 (239) hide show
  1. package/CHANGELOG.md +0 -73
  2. package/README.md +5 -46
  3. package/build/src/api/context.d.ts +4 -6
  4. package/build/src/api/context.js +14 -12
  5. package/build/src/api/context.js.map +1 -1
  6. package/build/src/api/diag.d.ts +3 -7
  7. package/build/src/api/diag.js +3 -15
  8. package/build/src/api/diag.js.map +1 -1
  9. package/build/src/api/propagation.d.ts +2 -10
  10. package/build/src/api/propagation.js +5 -13
  11. package/build/src/api/propagation.js.map +1 -1
  12. package/build/src/api/trace.d.ts +3 -12
  13. package/build/src/api/trace.js +4 -12
  14. package/build/src/api/trace.js.map +1 -1
  15. package/build/{esm/baggage/types.d.ts → src/baggage/Baggage.d.ts} +2 -20
  16. package/build/{esm/baggage/types.js → src/baggage/Baggage.js} +3 -2
  17. package/build/src/baggage/Baggage.js.map +1 -0
  18. package/build/src/baggage/Entry.d.ts +20 -0
  19. package/build/src/baggage/{types.js → Entry.js} +1 -1
  20. package/build/src/baggage/Entry.js.map +1 -0
  21. package/build/src/baggage/{utils.d.ts → index.d.ts} +5 -2
  22. package/build/src/baggage/{utils.js → index.js} +16 -5
  23. package/build/src/baggage/index.js.map +1 -0
  24. package/build/{esm/baggage/internal/baggage-impl.d.ts → src/baggage/internal/baggage.d.ts} +3 -2
  25. package/build/src/baggage/internal/{baggage-impl.js → baggage.js} +1 -1
  26. package/build/src/baggage/internal/baggage.js.map +1 -0
  27. package/build/src/context/NoopContextManager.d.ts +1 -1
  28. package/build/src/context/NoopContextManager.js +8 -6
  29. package/build/src/context/NoopContextManager.js.map +1 -1
  30. package/build/src/context/context.d.ts +59 -0
  31. package/build/src/context/context.js +101 -7
  32. package/build/src/context/context.js.map +1 -1
  33. package/build/src/context/types.d.ts +2 -2
  34. package/build/src/diag/types.d.ts +0 -6
  35. package/build/src/index.d.ts +8 -2
  36. package/build/src/index.js +9 -4
  37. package/build/src/index.js.map +1 -1
  38. package/build/src/internal/global-utils.d.ts +1 -1
  39. package/build/src/internal/global-utils.js +5 -7
  40. package/build/src/internal/global-utils.js.map +1 -1
  41. package/build/src/propagation/NoopTextMapPropagator.d.ts +1 -0
  42. package/build/src/propagation/NoopTextMapPropagator.js +2 -1
  43. package/build/src/propagation/NoopTextMapPropagator.js.map +1 -1
  44. package/build/src/trace/Event.d.ts +9 -0
  45. package/build/{esm/diag/index.js → src/trace/Event.js} +3 -3
  46. package/build/src/trace/Event.js.map +1 -0
  47. package/build/{esm/trace/NonRecordingSpan.d.ts → src/trace/NoopSpan.d.ts} +4 -4
  48. package/build/src/trace/{NonRecordingSpan.js → NoopSpan.js} +17 -17
  49. package/build/src/trace/NoopSpan.js.map +1 -0
  50. package/build/src/trace/NoopTracer.d.ts +1 -3
  51. package/build/src/trace/NoopTracer.js +8 -32
  52. package/build/src/trace/NoopTracer.js.map +1 -1
  53. package/build/src/trace/NoopTracerProvider.d.ts +1 -0
  54. package/build/src/trace/NoopTracerProvider.js +3 -2
  55. package/build/src/trace/NoopTracerProvider.js.map +1 -1
  56. package/build/src/trace/ProxyTracer.d.ts +0 -1
  57. package/build/src/trace/ProxyTracer.js +1 -5
  58. package/build/src/trace/ProxyTracer.js.map +1 -1
  59. package/build/src/trace/ProxyTracerProvider.js +1 -2
  60. package/build/src/trace/ProxyTracerProvider.js.map +1 -1
  61. package/build/src/trace/TimedEvent.d.ts +10 -0
  62. package/build/{esm/context/types.js → src/trace/TimedEvent.js} +3 -2
  63. package/build/src/trace/TimedEvent.js.map +1 -0
  64. package/build/src/trace/link.d.ts +3 -3
  65. package/build/src/trace/link_context.d.ts +6 -0
  66. package/build/src/trace/link_context.js +18 -0
  67. package/build/src/trace/link_context.js.map +1 -0
  68. package/build/src/trace/span.d.ts +1 -1
  69. package/build/src/trace/spancontext-utils.d.ts +0 -8
  70. package/build/src/trace/spancontext-utils.js +1 -27
  71. package/build/src/trace/spancontext-utils.js.map +1 -1
  72. package/build/src/trace/tracer.d.ts +0 -46
  73. package/build/src/version.d.ts +1 -1
  74. package/build/src/version.js +1 -1
  75. package/build/src/version.js.map +1 -1
  76. package/package.json +15 -20
  77. package/build/esm/api/context.d.ts +0 -41
  78. package/build/esm/api/context.js +0 -89
  79. package/build/esm/api/context.js.map +0 -1
  80. package/build/esm/api/diag.d.ts +0 -38
  81. package/build/esm/api/diag.js +0 -89
  82. package/build/esm/api/diag.js.map +0 -1
  83. package/build/esm/api/propagation.d.ts +0 -48
  84. package/build/esm/api/propagation.js +0 -87
  85. package/build/esm/api/propagation.js.map +0 -1
  86. package/build/esm/api/trace.d.ts +0 -39
  87. package/build/esm/api/trace.js +0 -72
  88. package/build/esm/api/trace.js.map +0 -1
  89. package/build/esm/baggage/context-helpers.d.ts +0 -23
  90. package/build/esm/baggage/context-helpers.js +0 -47
  91. package/build/esm/baggage/context-helpers.js.map +0 -1
  92. package/build/esm/baggage/internal/baggage-impl.js +0 -61
  93. package/build/esm/baggage/internal/baggage-impl.js.map +0 -1
  94. package/build/esm/baggage/internal/symbol.d.ts +0 -5
  95. package/build/esm/baggage/internal/symbol.js +0 -20
  96. package/build/esm/baggage/internal/symbol.js.map +0 -1
  97. package/build/esm/baggage/types.js.map +0 -1
  98. package/build/esm/baggage/utils.d.ts +0 -15
  99. package/build/esm/baggage/utils.js +0 -46
  100. package/build/esm/baggage/utils.js.map +0 -1
  101. package/build/esm/common/Exception.d.ts +0 -26
  102. package/build/esm/common/Exception.js +0 -17
  103. package/build/esm/common/Exception.js.map +0 -1
  104. package/build/esm/common/Time.d.ts +0 -8
  105. package/build/esm/common/Time.js +0 -2
  106. package/build/esm/common/Time.js.map +0 -1
  107. package/build/esm/context/NoopContextManager.d.ts +0 -9
  108. package/build/esm/context/NoopContextManager.js +0 -47
  109. package/build/esm/context/NoopContextManager.js.map +0 -1
  110. package/build/esm/context/context.d.ts +0 -6
  111. package/build/esm/context/context.js +0 -52
  112. package/build/esm/context/context.js.map +0 -1
  113. package/build/esm/context/types.d.ts +0 -52
  114. package/build/esm/context/types.js.map +0 -1
  115. package/build/esm/diag/ComponentLogger.d.ts +0 -20
  116. package/build/esm/diag/ComponentLogger.js +0 -77
  117. package/build/esm/diag/ComponentLogger.js.map +0 -1
  118. package/build/esm/diag/consoleLogger.d.ts +0 -38
  119. package/build/esm/diag/consoleLogger.js +0 -54
  120. package/build/esm/diag/consoleLogger.js.map +0 -1
  121. package/build/esm/diag/index.d.ts +0 -3
  122. package/build/esm/diag/index.js.map +0 -1
  123. package/build/esm/diag/internal/logLevelLogger.d.ts +0 -3
  124. package/build/esm/diag/internal/logLevelLogger.js +0 -41
  125. package/build/esm/diag/internal/logLevelLogger.js.map +0 -1
  126. package/build/esm/diag/internal/noopLogger.d.ts +0 -8
  127. package/build/esm/diag/internal/noopLogger.js +0 -31
  128. package/build/esm/diag/internal/noopLogger.js.map +0 -1
  129. package/build/esm/diag/types.d.ts +0 -70
  130. package/build/esm/diag/types.js +0 -41
  131. package/build/esm/diag/types.js.map +0 -1
  132. package/build/esm/index.d.ts +0 -53
  133. package/build/esm/index.js +0 -63
  134. package/build/esm/index.js.map +0 -1
  135. package/build/esm/internal/global-utils.d.ts +0 -16
  136. package/build/esm/internal/global-utils.js +0 -60
  137. package/build/esm/internal/global-utils.js.map +0 -1
  138. package/build/esm/internal/semver.d.ts +0 -34
  139. package/build/esm/internal/semver.js +0 -106
  140. package/build/esm/internal/semver.js.map +0 -1
  141. package/build/esm/platform/browser/globalThis.d.ts +0 -3
  142. package/build/esm/platform/browser/globalThis.js +0 -19
  143. package/build/esm/platform/browser/globalThis.js.map +0 -1
  144. package/build/esm/platform/browser/index.d.ts +0 -2
  145. package/build/esm/platform/browser/index.js +0 -17
  146. package/build/esm/platform/browser/index.js.map +0 -1
  147. package/build/esm/platform/index.d.ts +0 -2
  148. package/build/esm/platform/index.js +0 -17
  149. package/build/esm/platform/index.js.map +0 -1
  150. package/build/esm/platform/node/globalThis.d.ts +0 -3
  151. package/build/esm/platform/node/globalThis.js +0 -19
  152. package/build/esm/platform/node/globalThis.js.map +0 -1
  153. package/build/esm/platform/node/index.d.ts +0 -2
  154. package/build/esm/platform/node/index.js +0 -17
  155. package/build/esm/platform/node/index.js.map +0 -1
  156. package/build/esm/propagation/NoopTextMapPropagator.d.ts +0 -13
  157. package/build/esm/propagation/NoopTextMapPropagator.js +0 -34
  158. package/build/esm/propagation/NoopTextMapPropagator.js.map +0 -1
  159. package/build/esm/propagation/TextMapPropagator.d.ts +0 -84
  160. package/build/esm/propagation/TextMapPropagator.js +0 -38
  161. package/build/esm/propagation/TextMapPropagator.js.map +0 -1
  162. package/build/esm/trace/NonRecordingSpan.js +0 -62
  163. package/build/esm/trace/NonRecordingSpan.js.map +0 -1
  164. package/build/esm/trace/NoopTracer.d.ts +0 -14
  165. package/build/esm/trace/NoopTracer.js +0 -74
  166. package/build/esm/trace/NoopTracer.js.map +0 -1
  167. package/build/esm/trace/NoopTracerProvider.d.ts +0 -12
  168. package/build/esm/trace/NoopTracerProvider.js +0 -32
  169. package/build/esm/trace/NoopTracerProvider.js.map +0 -1
  170. package/build/esm/trace/ProxyTracer.d.ts +0 -23
  171. package/build/esm/trace/ProxyTracer.js +0 -51
  172. package/build/esm/trace/ProxyTracer.js.map +0 -1
  173. package/build/esm/trace/ProxyTracerProvider.d.ts +0 -24
  174. package/build/esm/trace/ProxyTracerProvider.js +0 -54
  175. package/build/esm/trace/ProxyTracerProvider.js.map +0 -1
  176. package/build/esm/trace/Sampler.d.ts +0 -30
  177. package/build/esm/trace/Sampler.js +0 -17
  178. package/build/esm/trace/Sampler.js.map +0 -1
  179. package/build/esm/trace/SamplingResult.d.ts +0 -39
  180. package/build/esm/trace/SamplingResult.js +0 -38
  181. package/build/esm/trace/SamplingResult.js.map +0 -1
  182. package/build/esm/trace/SpanOptions.d.ts +0 -23
  183. package/build/esm/trace/SpanOptions.js +0 -17
  184. package/build/esm/trace/SpanOptions.js.map +0 -1
  185. package/build/esm/trace/attributes.d.ts +0 -10
  186. package/build/esm/trace/attributes.js +0 -17
  187. package/build/esm/trace/attributes.js.map +0 -1
  188. package/build/esm/trace/context-utils.d.ts +0 -37
  189. package/build/esm/trace/context-utils.js +0 -66
  190. package/build/esm/trace/context-utils.js.map +0 -1
  191. package/build/esm/trace/link.d.ts +0 -24
  192. package/build/esm/trace/link.js +0 -17
  193. package/build/esm/trace/link.js.map +0 -1
  194. package/build/esm/trace/span.d.ts +0 -101
  195. package/build/esm/trace/span.js +0 -17
  196. package/build/esm/trace/span.js.map +0 -1
  197. package/build/esm/trace/span_context.d.ts +0 -53
  198. package/build/esm/trace/span_context.js +0 -17
  199. package/build/esm/trace/span_context.js.map +0 -1
  200. package/build/esm/trace/span_kind.d.ts +0 -27
  201. package/build/esm/trace/span_kind.js +0 -43
  202. package/build/esm/trace/span_kind.js.map +0 -1
  203. package/build/esm/trace/spancontext-utils.d.ts +0 -20
  204. package/build/esm/trace/spancontext-utils.js +0 -49
  205. package/build/esm/trace/spancontext-utils.js.map +0 -1
  206. package/build/esm/trace/status.d.ts +0 -25
  207. package/build/esm/trace/status.js +0 -20
  208. package/build/esm/trace/status.js.map +0 -1
  209. package/build/esm/trace/trace_flags.d.ts +0 -7
  210. package/build/esm/trace/trace_flags.js +0 -23
  211. package/build/esm/trace/trace_flags.js.map +0 -1
  212. package/build/esm/trace/trace_state.d.ts +0 -38
  213. package/build/esm/trace/trace_state.js +0 -17
  214. package/build/esm/trace/trace_state.js.map +0 -1
  215. package/build/esm/trace/tracer.d.ts +0 -70
  216. package/build/esm/trace/tracer.js +0 -17
  217. package/build/esm/trace/tracer.js.map +0 -1
  218. package/build/esm/trace/tracer_provider.d.ts +0 -19
  219. package/build/esm/trace/tracer_provider.js +0 -17
  220. package/build/esm/trace/tracer_provider.js.map +0 -1
  221. package/build/esm/version.d.ts +0 -2
  222. package/build/esm/version.js +0 -18
  223. package/build/esm/version.js.map +0 -1
  224. package/build/src/baggage/context-helpers.d.ts +0 -23
  225. package/build/src/baggage/context-helpers.js +0 -53
  226. package/build/src/baggage/context-helpers.js.map +0 -1
  227. package/build/src/baggage/internal/baggage-impl.d.ts +0 -12
  228. package/build/src/baggage/internal/baggage-impl.js.map +0 -1
  229. package/build/src/baggage/types.d.ts +0 -60
  230. package/build/src/baggage/types.js.map +0 -1
  231. package/build/src/baggage/utils.js.map +0 -1
  232. package/build/src/diag/ComponentLogger.d.ts +0 -20
  233. package/build/src/diag/ComponentLogger.js +0 -80
  234. package/build/src/diag/ComponentLogger.js.map +0 -1
  235. package/build/src/trace/NonRecordingSpan.d.ts +0 -25
  236. package/build/src/trace/NonRecordingSpan.js.map +0 -1
  237. package/build/src/trace/context-utils.d.ts +0 -37
  238. package/build/src/trace/context-utils.js +0 -74
  239. package/build/src/trace/context-utils.js.map +0 -1
@@ -1,41 +0,0 @@
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
- /**
17
- * Defines the available internal logging levels for the diagnostic logger, the numeric values
18
- * of the levels are defined to match the original values from the initial LogLevel to avoid
19
- * compatibility/migration issues for any implementation that assume the numeric ordering.
20
- */
21
- export var DiagLogLevel;
22
- (function (DiagLogLevel) {
23
- /** Diagnostic Logging level setting to disable all logging (except and forced logs) */
24
- DiagLogLevel[DiagLogLevel["NONE"] = 0] = "NONE";
25
- /** Identifies an error scenario */
26
- DiagLogLevel[DiagLogLevel["ERROR"] = 30] = "ERROR";
27
- /** Identifies a warning scenario */
28
- DiagLogLevel[DiagLogLevel["WARN"] = 50] = "WARN";
29
- /** General informational log message */
30
- DiagLogLevel[DiagLogLevel["INFO"] = 60] = "INFO";
31
- /** General debug log message */
32
- DiagLogLevel[DiagLogLevel["DEBUG"] = 70] = "DEBUG";
33
- /**
34
- * Detailed trace level logging should only be used for development, should only be set
35
- * in a development environment.
36
- */
37
- DiagLogLevel[DiagLogLevel["VERBOSE"] = 80] = "VERBOSE";
38
- /** Used to set the logging level to include all logging */
39
- DiagLogLevel[DiagLogLevel["ALL"] = 9999] = "ALL";
40
- })(DiagLogLevel || (DiagLogLevel = {}));
41
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/diag/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA+CH;;;;GAIG;AACH,MAAM,CAAN,IAAY,YAwBX;AAxBD,WAAY,YAAY;IACtB,uFAAuF;IACvF,+CAAQ,CAAA;IAER,mCAAmC;IACnC,kDAAU,CAAA;IAEV,oCAAoC;IACpC,gDAAS,CAAA;IAET,wCAAwC;IACxC,gDAAS,CAAA;IAET,gCAAgC;IAChC,kDAAU,CAAA;IAEV;;;OAGG;IACH,sDAAY,CAAA;IAEZ,2DAA2D;IAC3D,gDAAU,CAAA;AACZ,CAAC,EAxBW,YAAY,KAAZ,YAAY,QAwBvB"}
@@ -1,53 +0,0 @@
1
- export * from './baggage/types';
2
- export { baggageEntryMetadataFromString } from './baggage/utils';
3
- export * from './common/Exception';
4
- export * from './common/Time';
5
- export * from './diag';
6
- export * from './propagation/TextMapPropagator';
7
- export * from './trace/attributes';
8
- export * from './trace/link';
9
- export * from './trace/ProxyTracer';
10
- export * from './trace/ProxyTracerProvider';
11
- export * from './trace/Sampler';
12
- export * from './trace/SamplingResult';
13
- export * from './trace/span_context';
14
- export * from './trace/span_kind';
15
- export * from './trace/span';
16
- export * from './trace/SpanOptions';
17
- export * from './trace/status';
18
- export * from './trace/trace_flags';
19
- export * from './trace/trace_state';
20
- export * from './trace/tracer_provider';
21
- export * from './trace/tracer';
22
- export { INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT, isSpanContextValid, isValidTraceId, isValidSpanId, } from './trace/spancontext-utils';
23
- export * from './context/context';
24
- export * from './context/types';
25
- import { ContextAPI } from './api/context';
26
- export type { ContextAPI } from './api/context';
27
- /** Entrypoint for context API */
28
- export declare const context: ContextAPI;
29
- import { TraceAPI } from './api/trace';
30
- export type { TraceAPI } from './api/trace';
31
- /** Entrypoint for trace API */
32
- export declare const trace: TraceAPI;
33
- import { PropagationAPI } from './api/propagation';
34
- export type { PropagationAPI } from './api/propagation';
35
- /** Entrypoint for propagation API */
36
- export declare const propagation: PropagationAPI;
37
- import { DiagAPI } from './api/diag';
38
- export type { DiagAPI } from './api/diag';
39
- /**
40
- * Entrypoint for Diag API.
41
- * Defines Diagnostic handler used for internal diagnostic logging operations.
42
- * The default provides a Noop DiagLogger implementation which may be changed via the
43
- * diag.setLogger(logger: DiagLogger) function.
44
- */
45
- export declare const diag: DiagAPI;
46
- declare const _default: {
47
- trace: TraceAPI;
48
- context: ContextAPI;
49
- propagation: PropagationAPI;
50
- diag: DiagAPI;
51
- };
52
- export default _default;
53
- //# sourceMappingURL=index.d.ts.map
@@ -1,63 +0,0 @@
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 * from './baggage/types';
17
- export { baggageEntryMetadataFromString } from './baggage/utils';
18
- export * from './common/Exception';
19
- export * from './common/Time';
20
- export * from './diag';
21
- export * from './propagation/TextMapPropagator';
22
- export * from './trace/attributes';
23
- export * from './trace/link';
24
- export * from './trace/ProxyTracer';
25
- export * from './trace/ProxyTracerProvider';
26
- export * from './trace/Sampler';
27
- export * from './trace/SamplingResult';
28
- export * from './trace/span_context';
29
- export * from './trace/span_kind';
30
- export * from './trace/span';
31
- export * from './trace/SpanOptions';
32
- export * from './trace/status';
33
- export * from './trace/trace_flags';
34
- export * from './trace/trace_state';
35
- export * from './trace/tracer_provider';
36
- export * from './trace/tracer';
37
- export { INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT, isSpanContextValid, isValidTraceId, isValidSpanId, } from './trace/spancontext-utils';
38
- export * from './context/context';
39
- export * from './context/types';
40
- import { ContextAPI } from './api/context';
41
- /** Entrypoint for context API */
42
- export var context = ContextAPI.getInstance();
43
- import { TraceAPI } from './api/trace';
44
- /** Entrypoint for trace API */
45
- export var trace = TraceAPI.getInstance();
46
- import { PropagationAPI } from './api/propagation';
47
- /** Entrypoint for propagation API */
48
- export var propagation = PropagationAPI.getInstance();
49
- import { DiagAPI } from './api/diag';
50
- /**
51
- * Entrypoint for Diag API.
52
- * Defines Diagnostic handler used for internal diagnostic logging operations.
53
- * The default provides a Noop DiagLogger implementation which may be changed via the
54
- * diag.setLogger(logger: DiagLogger) function.
55
- */
56
- export var diag = DiagAPI.instance();
57
- export default {
58
- trace: trace,
59
- context: context,
60
- propagation: propagation,
61
- diag: diag,
62
- };
63
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AACjE,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EACL,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,aAAa,GACd,MAAM,2BAA2B,CAAC;AAEnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,iCAAiC;AACjC,MAAM,CAAC,IAAM,OAAO,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,+BAA+B;AAC/B,MAAM,CAAC,IAAM,KAAK,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qCAAqC;AACrC,MAAM,CAAC,IAAM,WAAW,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC;;;;;GAKG;AACH,MAAM,CAAC,IAAM,IAAI,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;AAEvC,eAAe;IACb,KAAK,OAAA;IACL,OAAO,SAAA;IACP,WAAW,aAAA;IACX,IAAI,MAAA;CACL,CAAC"}
@@ -1,16 +0,0 @@
1
- import { ContextManager } from '../context/types';
2
- import { DiagLogger } from '../diag';
3
- import { TextMapPropagator } from '../propagation/TextMapPropagator';
4
- import type { TracerProvider } from '../trace/tracer_provider';
5
- export declare function registerGlobal<Type extends keyof OTelGlobalAPI>(type: Type, instance: OTelGlobalAPI[Type], allowOverride?: boolean): boolean;
6
- export declare function getGlobal<Type extends keyof OTelGlobalAPI>(type: Type): OTelGlobalAPI[Type] | undefined;
7
- export declare function unregisterGlobal(type: keyof OTelGlobalAPI): void;
8
- declare type OTelGlobalAPI = {
9
- version: string;
10
- diag?: DiagLogger;
11
- trace?: TracerProvider;
12
- context?: ContextManager;
13
- propagation?: TextMapPropagator;
14
- };
15
- export {};
16
- //# sourceMappingURL=global-utils.d.ts.map
@@ -1,60 +0,0 @@
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
- import { diag } from '..';
17
- import { _globalThis } from '../platform';
18
- import { VERSION } from '../version';
19
- import { isCompatible } from './semver';
20
- var major = VERSION.split('.')[0];
21
- var GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for("io.opentelemetry.js.api." + major);
22
- var _global = _globalThis;
23
- export function registerGlobal(type, instance, allowOverride) {
24
- var _a;
25
- if (allowOverride === void 0) { allowOverride = false; }
26
- var api = (_global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a !== void 0 ? _a : {
27
- version: VERSION,
28
- });
29
- if (!allowOverride && api[type]) {
30
- // already registered an API of this type
31
- var err = new Error("@opentelemetry/api: Attempted duplicate registration of API: " + type);
32
- diag.error(err.stack || err.message);
33
- return false;
34
- }
35
- if (api.version !== VERSION) {
36
- // All registered APIs must be of the same version exactly
37
- var err = new Error('@opentelemetry/api: All API registration versions must match');
38
- diag.error(err.stack || err.message);
39
- return false;
40
- }
41
- api[type] = instance;
42
- diag.debug("@opentelemetry/api: Registered a global for " + type + " v" + VERSION + ".");
43
- return true;
44
- }
45
- export function getGlobal(type) {
46
- var _a, _b;
47
- var globalVersion = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a === void 0 ? void 0 : _a.version;
48
- if (!globalVersion || !isCompatible(globalVersion)) {
49
- return;
50
- }
51
- return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === void 0 ? void 0 : _b[type];
52
- }
53
- export function unregisterGlobal(type) {
54
- diag.debug("@opentelemetry/api: Unregistering a global for " + type + " v" + VERSION + ".");
55
- var api = _global[GLOBAL_OPENTELEMETRY_API_KEY];
56
- if (api) {
57
- delete api[type];
58
- }
59
- }
60
- //# sourceMappingURL=global-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global-utils.js","sourceRoot":"","sources":["../../../src/internal/global-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,IAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACpC,IAAM,4BAA4B,GAAG,MAAM,CAAC,GAAG,CAC7C,6BAA2B,KAAO,CACnC,CAAC;AAEF,IAAM,OAAO,GAAG,WAAyB,CAAC;AAE1C,MAAM,UAAU,cAAc,CAC5B,IAAU,EACV,QAA6B,EAC7B,aAAqB;;IAArB,8BAAA,EAAA,qBAAqB;IAErB,IAAM,GAAG,GAAG,CAAC,OAAO,CAAC,4BAA4B,CAAC,GAAG,MAAA,OAAO,CAC1D,4BAA4B,CAC7B,mCAAI;QACH,OAAO,EAAE,OAAO;KACjB,CAAC,CAAC;IAEH,IAAI,CAAC,aAAa,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE;QAC/B,yCAAyC;QACzC,IAAM,GAAG,GAAG,IAAI,KAAK,CACnB,kEAAgE,IAAM,CACvE,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;QACrC,OAAO,KAAK,CAAC;KACd;IAED,IAAI,GAAG,CAAC,OAAO,KAAK,OAAO,EAAE;QAC3B,0DAA0D;QAC1D,IAAM,GAAG,GAAG,IAAI,KAAK,CACnB,8DAA8D,CAC/D,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;QACrC,OAAO,KAAK,CAAC;KACd;IAED,GAAG,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC;IACrB,IAAI,CAAC,KAAK,CACR,iDAA+C,IAAI,UAAK,OAAO,MAAG,CACnE,CAAC;IAEF,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,SAAS,CACvB,IAAU;;IAEV,IAAM,aAAa,GAAG,MAAA,OAAO,CAAC,4BAA4B,CAAC,0CAAE,OAAO,CAAC;IACrE,IAAI,CAAC,aAAa,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE;QAClD,OAAO;KACR;IACD,OAAO,MAAA,OAAO,CAAC,4BAA4B,CAAC,0CAAG,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAyB;IACxD,IAAI,CAAC,KAAK,CACR,oDAAkD,IAAI,UAAK,OAAO,MAAG,CACtE,CAAC;IACF,IAAM,GAAG,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAElD,IAAI,GAAG,EAAE;QACP,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC;KAClB;AACH,CAAC"}
@@ -1,34 +0,0 @@
1
- /**
2
- * Create a function to test an API version to see if it is compatible with the provided ownVersion.
3
- *
4
- * The returned function has the following semantics:
5
- * - Exact match is always compatible
6
- * - Major versions must match exactly
7
- * - 1.x package cannot use global 2.x package
8
- * - 2.x package cannot use global 1.x package
9
- * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API
10
- * - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects
11
- * - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3
12
- * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor
13
- * - Patch and build tag differences are not considered at this time
14
- *
15
- * @param ownVersion version which should be checked against
16
- */
17
- export declare function _makeCompatibilityCheck(ownVersion: string): (globalVersion: string) => boolean;
18
- /**
19
- * Test an API version to see if it is compatible with this API.
20
- *
21
- * - Exact match is always compatible
22
- * - Major versions must match exactly
23
- * - 1.x package cannot use global 2.x package
24
- * - 2.x package cannot use global 1.x package
25
- * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API
26
- * - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects
27
- * - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3
28
- * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor
29
- * - Patch and build tag differences are not considered at this time
30
- *
31
- * @param version version of the API requesting an instance of the global API
32
- */
33
- export declare const isCompatible: (globalVersion: string) => boolean;
34
- //# sourceMappingURL=semver.d.ts.map
@@ -1,106 +0,0 @@
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
- import { VERSION } from '../version';
17
- var re = /^(\d+)\.(\d+)\.(\d+)(?:-(.*))?$/;
18
- /**
19
- * Create a function to test an API version to see if it is compatible with the provided ownVersion.
20
- *
21
- * The returned function has the following semantics:
22
- * - Exact match is always compatible
23
- * - Major versions must match exactly
24
- * - 1.x package cannot use global 2.x package
25
- * - 2.x package cannot use global 1.x package
26
- * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API
27
- * - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects
28
- * - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3
29
- * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor
30
- * - Patch and build tag differences are not considered at this time
31
- *
32
- * @param ownVersion version which should be checked against
33
- */
34
- export function _makeCompatibilityCheck(ownVersion) {
35
- var acceptedVersions = new Set([ownVersion]);
36
- var rejectedVersions = new Set();
37
- var myVersionMatch = ownVersion.match(re);
38
- if (!myVersionMatch) {
39
- // we cannot guarantee compatibility so we always return noop
40
- return function () { return false; };
41
- }
42
- var ownVersionParsed = {
43
- major: +myVersionMatch[1],
44
- minor: +myVersionMatch[2],
45
- patch: +myVersionMatch[3],
46
- };
47
- function _reject(v) {
48
- rejectedVersions.add(v);
49
- return false;
50
- }
51
- function _accept(v) {
52
- acceptedVersions.add(v);
53
- return true;
54
- }
55
- return function isCompatible(globalVersion) {
56
- if (acceptedVersions.has(globalVersion)) {
57
- return true;
58
- }
59
- if (rejectedVersions.has(globalVersion)) {
60
- return false;
61
- }
62
- var globalVersionMatch = globalVersion.match(re);
63
- if (!globalVersionMatch) {
64
- // cannot parse other version
65
- // we cannot guarantee compatibility so we always noop
66
- return _reject(globalVersion);
67
- }
68
- var globalVersionParsed = {
69
- major: +globalVersionMatch[1],
70
- minor: +globalVersionMatch[2],
71
- patch: +globalVersionMatch[3],
72
- };
73
- // major versions must match
74
- if (ownVersionParsed.major !== globalVersionParsed.major) {
75
- return _reject(globalVersion);
76
- }
77
- if (ownVersionParsed.major === 0) {
78
- if (ownVersionParsed.minor === globalVersionParsed.minor &&
79
- ownVersionParsed.patch <= globalVersionParsed.patch) {
80
- return _accept(globalVersion);
81
- }
82
- return _reject(globalVersion);
83
- }
84
- if (ownVersionParsed.minor <= globalVersionParsed.minor) {
85
- return _accept(globalVersion);
86
- }
87
- return _reject(globalVersion);
88
- };
89
- }
90
- /**
91
- * Test an API version to see if it is compatible with this API.
92
- *
93
- * - Exact match is always compatible
94
- * - Major versions must match exactly
95
- * - 1.x package cannot use global 2.x package
96
- * - 2.x package cannot use global 1.x package
97
- * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API
98
- * - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects
99
- * - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3
100
- * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor
101
- * - Patch and build tag differences are not considered at this time
102
- *
103
- * @param version version of the API requesting an instance of the global API
104
- */
105
- export var isCompatible = _makeCompatibilityCheck(VERSION);
106
- //# sourceMappingURL=semver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"semver.js","sourceRoot":"","sources":["../../../src/internal/semver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,IAAM,EAAE,GAAG,iCAAiC,CAAC;AAE7C;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,uBAAuB,CACrC,UAAkB;IAElB,IAAM,gBAAgB,GAAG,IAAI,GAAG,CAAS,CAAC,UAAU,CAAC,CAAC,CAAC;IACvD,IAAM,gBAAgB,GAAG,IAAI,GAAG,EAAU,CAAC;IAE3C,IAAM,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC5C,IAAI,CAAC,cAAc,EAAE;QACnB,6DAA6D;QAC7D,OAAO,cAAM,OAAA,KAAK,EAAL,CAAK,CAAC;KACpB;IAED,IAAM,gBAAgB,GAAG;QACvB,KAAK,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;QACzB,KAAK,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;QACzB,KAAK,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;KAC1B,CAAC;IAEF,SAAS,OAAO,CAAC,CAAS;QACxB,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,SAAS,OAAO,CAAC,CAAS;QACxB,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,SAAS,YAAY,CAAC,aAAqB;QAChD,IAAI,gBAAgB,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE;YACvC,OAAO,IAAI,CAAC;SACb;QAED,IAAI,gBAAgB,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE;YACvC,OAAO,KAAK,CAAC;SACd;QAED,IAAM,kBAAkB,GAAG,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACnD,IAAI,CAAC,kBAAkB,EAAE;YACvB,6BAA6B;YAC7B,sDAAsD;YACtD,OAAO,OAAO,CAAC,aAAa,CAAC,CAAC;SAC/B;QAED,IAAM,mBAAmB,GAAG;YAC1B,KAAK,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC;YAC7B,KAAK,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC;YAC7B,KAAK,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC;SAC9B,CAAC;QAEF,4BAA4B;QAC5B,IAAI,gBAAgB,CAAC,KAAK,KAAK,mBAAmB,CAAC,KAAK,EAAE;YACxD,OAAO,OAAO,CAAC,aAAa,CAAC,CAAC;SAC/B;QAED,IAAI,gBAAgB,CAAC,KAAK,KAAK,CAAC,EAAE;YAChC,IACE,gBAAgB,CAAC,KAAK,KAAK,mBAAmB,CAAC,KAAK;gBACpD,gBAAgB,CAAC,KAAK,IAAI,mBAAmB,CAAC,KAAK,EACnD;gBACA,OAAO,OAAO,CAAC,aAAa,CAAC,CAAC;aAC/B;YAED,OAAO,OAAO,CAAC,aAAa,CAAC,CAAC;SAC/B;QAED,IAAI,gBAAgB,CAAC,KAAK,IAAI,mBAAmB,CAAC,KAAK,EAAE;YACvD,OAAO,OAAO,CAAC,aAAa,CAAC,CAAC;SAC/B;QAED,OAAO,OAAO,CAAC,aAAa,CAAC,CAAC;IAChC,CAAC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,IAAM,YAAY,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- /** only globals that common to node and browsers are allowed */
2
- export declare const _globalThis: typeof globalThis;
3
- //# sourceMappingURL=globalThis.d.ts.map
@@ -1,19 +0,0 @@
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
- /** only globals that common to node and browsers are allowed */
17
- // eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef
18
- export var _globalThis = typeof globalThis === 'object' ? globalThis : window;
19
- //# sourceMappingURL=globalThis.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"globalThis.js","sourceRoot":"","sources":["../../../../src/platform/browser/globalThis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,gEAAgE;AAChE,8EAA8E;AAC9E,MAAM,CAAC,IAAM,WAAW,GAAG,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './globalThis';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,17 +0,0 @@
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 * from './globalThis';
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/platform/browser/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,cAAc,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './node';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,17 +0,0 @@
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 * from './node';
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platform/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,QAAQ,CAAC"}
@@ -1,3 +0,0 @@
1
- /** only globals that common to node and browsers are allowed */
2
- export declare const _globalThis: typeof globalThis;
3
- //# sourceMappingURL=globalThis.d.ts.map
@@ -1,19 +0,0 @@
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
- /** only globals that common to node and browsers are allowed */
17
- // eslint-disable-next-line node/no-unsupported-features/es-builtins
18
- export var _globalThis = typeof globalThis === 'object' ? globalThis : global;
19
- //# sourceMappingURL=globalThis.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"globalThis.js","sourceRoot":"","sources":["../../../../src/platform/node/globalThis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,gEAAgE;AAChE,oEAAoE;AACpE,MAAM,CAAC,IAAM,WAAW,GAAG,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './globalThis';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,17 +0,0 @@
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 * from './globalThis';
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/platform/node/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,cAAc,CAAC"}
@@ -1,13 +0,0 @@
1
- import { Context } from '../context/types';
2
- import { TextMapPropagator } from './TextMapPropagator';
3
- /**
4
- * No-op implementations of {@link TextMapPropagator}.
5
- */
6
- export declare class NoopTextMapPropagator implements TextMapPropagator {
7
- /** Noop inject function does nothing */
8
- inject(_context: Context, _carrier: unknown): void;
9
- /** Noop extract function does nothing and returns the input context */
10
- extract(context: Context, _carrier: unknown): Context;
11
- fields(): string[];
12
- }
13
- //# sourceMappingURL=NoopTextMapPropagator.d.ts.map
@@ -1,34 +0,0 @@
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
- /**
17
- * No-op implementations of {@link TextMapPropagator}.
18
- */
19
- var NoopTextMapPropagator = /** @class */ (function () {
20
- function NoopTextMapPropagator() {
21
- }
22
- /** Noop inject function does nothing */
23
- NoopTextMapPropagator.prototype.inject = function (_context, _carrier) { };
24
- /** Noop extract function does nothing and returns the input context */
25
- NoopTextMapPropagator.prototype.extract = function (context, _carrier) {
26
- return context;
27
- };
28
- NoopTextMapPropagator.prototype.fields = function () {
29
- return [];
30
- };
31
- return NoopTextMapPropagator;
32
- }());
33
- export { NoopTextMapPropagator };
34
- //# sourceMappingURL=NoopTextMapPropagator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NoopTextMapPropagator.js","sourceRoot":"","sources":["../../../src/propagation/NoopTextMapPropagator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH;;GAEG;AACH;IAAA;IAUA,CAAC;IATC,wCAAwC;IACxC,sCAAM,GAAN,UAAO,QAAiB,EAAE,QAAiB,IAAS,CAAC;IACrD,uEAAuE;IACvE,uCAAO,GAAP,UAAQ,OAAgB,EAAE,QAAiB;QACzC,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,sCAAM,GAAN;QACE,OAAO,EAAE,CAAC;IACZ,CAAC;IACH,4BAAC;AAAD,CAAC,AAVD,IAUC"}