@azure/synapse-monitoring 1.0.0-beta.1 → 1.0.0-beta.4

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 (176) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +17 -14
  3. package/dist/browser/index.d.ts +4 -0
  4. package/dist/browser/index.d.ts.map +1 -0
  5. package/dist/browser/index.js +11 -0
  6. package/dist/browser/index.js.map +1 -0
  7. package/dist/browser/models/index.d.ts +50 -0
  8. package/dist/browser/models/index.d.ts.map +1 -0
  9. package/dist/browser/models/index.js +9 -0
  10. package/dist/browser/models/index.js.map +1 -0
  11. package/dist/browser/models/mappers.d.ts +5 -0
  12. package/dist/browser/models/mappers.d.ts.map +1 -0
  13. package/dist/browser/models/mappers.js +162 -0
  14. package/dist/browser/models/mappers.js.map +1 -0
  15. package/dist/browser/models/parameters.d.ts +9 -0
  16. package/dist/browser/models/parameters.d.ts.map +1 -0
  17. package/dist/browser/models/parameters.js +77 -0
  18. package/dist/browser/models/parameters.js.map +1 -0
  19. package/dist/browser/monitoringClient.d.ts +20 -0
  20. package/dist/browser/monitoringClient.d.ts.map +1 -0
  21. package/dist/browser/monitoringClient.js +101 -0
  22. package/dist/browser/monitoringClient.js.map +1 -0
  23. package/dist/browser/operations/index.d.ts +2 -0
  24. package/dist/browser/operations/index.d.ts.map +1 -0
  25. package/dist/browser/operations/index.js +9 -0
  26. package/dist/browser/operations/index.js.map +1 -0
  27. package/dist/browser/operations/monitoring.d.ts +23 -0
  28. package/dist/browser/operations/monitoring.d.ts.map +1 -0
  29. package/dist/browser/operations/monitoring.js +69 -0
  30. package/dist/browser/operations/monitoring.js.map +1 -0
  31. package/dist/browser/operationsInterfaces/index.d.ts +2 -0
  32. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  33. package/dist/browser/operationsInterfaces/index.js +9 -0
  34. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  35. package/dist/browser/operationsInterfaces/monitoring.d.ts +15 -0
  36. package/dist/browser/operationsInterfaces/monitoring.d.ts.map +1 -0
  37. package/dist/browser/operationsInterfaces/monitoring.js +9 -0
  38. package/dist/browser/operationsInterfaces/monitoring.js.map +1 -0
  39. package/dist/browser/package.json +3 -0
  40. package/dist/browser/tracing.d.ts +2 -0
  41. package/dist/browser/tracing.d.ts.map +1 -0
  42. package/dist/browser/tracing.js +14 -0
  43. package/dist/browser/tracing.js.map +1 -0
  44. package/dist/commonjs/index.d.ts +4 -0
  45. package/dist/commonjs/index.d.ts.map +1 -0
  46. package/dist/commonjs/index.js +16 -0
  47. package/dist/commonjs/index.js.map +1 -0
  48. package/dist/commonjs/models/index.d.ts +50 -0
  49. package/dist/commonjs/models/index.d.ts.map +1 -0
  50. package/dist/commonjs/models/index.js +10 -0
  51. package/dist/commonjs/models/index.js.map +1 -0
  52. package/dist/commonjs/models/mappers.d.ts +5 -0
  53. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  54. package/dist/commonjs/models/mappers.js +165 -0
  55. package/dist/commonjs/models/mappers.js.map +1 -0
  56. package/dist/commonjs/models/parameters.d.ts +9 -0
  57. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  58. package/dist/commonjs/models/parameters.js +80 -0
  59. package/dist/commonjs/models/parameters.js.map +1 -0
  60. package/dist/commonjs/monitoringClient.d.ts +20 -0
  61. package/dist/commonjs/monitoringClient.d.ts.map +1 -0
  62. package/dist/commonjs/monitoringClient.js +106 -0
  63. package/dist/commonjs/monitoringClient.js.map +1 -0
  64. package/dist/commonjs/operations/index.d.ts +2 -0
  65. package/dist/commonjs/operations/index.d.ts.map +1 -0
  66. package/dist/commonjs/operations/index.js +12 -0
  67. package/dist/commonjs/operations/index.js.map +1 -0
  68. package/dist/commonjs/operations/monitoring.d.ts +23 -0
  69. package/dist/commonjs/operations/monitoring.d.ts.map +1 -0
  70. package/dist/commonjs/operations/monitoring.js +74 -0
  71. package/dist/commonjs/operations/monitoring.js.map +1 -0
  72. package/dist/commonjs/operationsInterfaces/index.d.ts +2 -0
  73. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  74. package/dist/commonjs/operationsInterfaces/index.js +12 -0
  75. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  76. package/dist/commonjs/operationsInterfaces/monitoring.d.ts +15 -0
  77. package/dist/commonjs/operationsInterfaces/monitoring.d.ts.map +1 -0
  78. package/dist/commonjs/operationsInterfaces/monitoring.js +10 -0
  79. package/dist/commonjs/operationsInterfaces/monitoring.js.map +1 -0
  80. package/dist/commonjs/package.json +3 -0
  81. package/dist/commonjs/tracing.d.ts +2 -0
  82. package/dist/commonjs/tracing.d.ts.map +1 -0
  83. package/dist/commonjs/tracing.js +17 -0
  84. package/dist/commonjs/tracing.js.map +1 -0
  85. package/dist/commonjs/tsdoc-metadata.json +11 -0
  86. package/dist/esm/index.d.ts +4 -0
  87. package/dist/esm/index.d.ts.map +1 -0
  88. package/dist/esm/index.js +11 -0
  89. package/dist/esm/index.js.map +1 -0
  90. package/dist/esm/models/index.d.ts +50 -0
  91. package/dist/esm/models/index.d.ts.map +1 -0
  92. package/dist/esm/models/index.js +9 -0
  93. package/dist/esm/models/index.js.map +1 -0
  94. package/dist/esm/models/mappers.d.ts +5 -0
  95. package/dist/esm/models/mappers.d.ts.map +1 -0
  96. package/dist/esm/models/mappers.js +162 -0
  97. package/dist/esm/models/mappers.js.map +1 -0
  98. package/dist/esm/models/parameters.d.ts +9 -0
  99. package/dist/esm/models/parameters.d.ts.map +1 -0
  100. package/dist/esm/models/parameters.js +77 -0
  101. package/dist/esm/models/parameters.js.map +1 -0
  102. package/dist/esm/monitoringClient.d.ts +20 -0
  103. package/dist/esm/monitoringClient.d.ts.map +1 -0
  104. package/dist/esm/monitoringClient.js +101 -0
  105. package/dist/esm/monitoringClient.js.map +1 -0
  106. package/dist/esm/operations/index.d.ts +2 -0
  107. package/dist/esm/operations/index.d.ts.map +1 -0
  108. package/dist/esm/operations/index.js +9 -0
  109. package/dist/esm/operations/index.js.map +1 -0
  110. package/dist/esm/operations/monitoring.d.ts +23 -0
  111. package/dist/esm/operations/monitoring.d.ts.map +1 -0
  112. package/dist/esm/operations/monitoring.js +69 -0
  113. package/dist/esm/operations/monitoring.js.map +1 -0
  114. package/dist/esm/operationsInterfaces/index.d.ts +2 -0
  115. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  116. package/dist/esm/operationsInterfaces/index.js +9 -0
  117. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  118. package/dist/esm/operationsInterfaces/monitoring.d.ts +15 -0
  119. package/dist/esm/operationsInterfaces/monitoring.d.ts.map +1 -0
  120. package/dist/esm/operationsInterfaces/monitoring.js +9 -0
  121. package/dist/esm/operationsInterfaces/monitoring.js.map +1 -0
  122. package/dist/esm/package.json +3 -0
  123. package/dist/esm/tracing.d.ts +2 -0
  124. package/dist/esm/tracing.d.ts.map +1 -0
  125. package/dist/esm/tracing.js +14 -0
  126. package/dist/esm/tracing.js.map +1 -0
  127. package/dist/react-native/index.d.ts +4 -0
  128. package/dist/react-native/index.d.ts.map +1 -0
  129. package/dist/react-native/index.js +11 -0
  130. package/dist/react-native/index.js.map +1 -0
  131. package/dist/react-native/models/index.d.ts +50 -0
  132. package/dist/react-native/models/index.d.ts.map +1 -0
  133. package/dist/react-native/models/index.js +9 -0
  134. package/dist/react-native/models/index.js.map +1 -0
  135. package/dist/react-native/models/mappers.d.ts +5 -0
  136. package/dist/react-native/models/mappers.d.ts.map +1 -0
  137. package/dist/react-native/models/mappers.js +162 -0
  138. package/dist/react-native/models/mappers.js.map +1 -0
  139. package/dist/react-native/models/parameters.d.ts +9 -0
  140. package/dist/react-native/models/parameters.d.ts.map +1 -0
  141. package/dist/react-native/models/parameters.js +77 -0
  142. package/dist/react-native/models/parameters.js.map +1 -0
  143. package/dist/react-native/monitoringClient.d.ts +20 -0
  144. package/dist/react-native/monitoringClient.d.ts.map +1 -0
  145. package/dist/react-native/monitoringClient.js +101 -0
  146. package/dist/react-native/monitoringClient.js.map +1 -0
  147. package/dist/react-native/operations/index.d.ts +2 -0
  148. package/dist/react-native/operations/index.d.ts.map +1 -0
  149. package/dist/react-native/operations/index.js +9 -0
  150. package/dist/react-native/operations/index.js.map +1 -0
  151. package/dist/react-native/operations/monitoring.d.ts +23 -0
  152. package/dist/react-native/operations/monitoring.d.ts.map +1 -0
  153. package/dist/react-native/operations/monitoring.js +69 -0
  154. package/dist/react-native/operations/monitoring.js.map +1 -0
  155. package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
  156. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  157. package/dist/react-native/operationsInterfaces/index.js +9 -0
  158. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  159. package/dist/react-native/operationsInterfaces/monitoring.d.ts +15 -0
  160. package/dist/react-native/operationsInterfaces/monitoring.d.ts.map +1 -0
  161. package/dist/react-native/operationsInterfaces/monitoring.js +9 -0
  162. package/dist/react-native/operationsInterfaces/monitoring.js.map +1 -0
  163. package/dist/react-native/package.json +3 -0
  164. package/dist/react-native/tracing.d.ts +2 -0
  165. package/dist/react-native/tracing.d.ts.map +1 -0
  166. package/dist/react-native/tracing.js +14 -0
  167. package/dist/react-native/tracing.js.map +1 -0
  168. package/package.json +83 -45
  169. package/CHANGELOG.md +0 -5
  170. package/dist/index.js +0 -2584
  171. package/dist/index.js.map +0 -1
  172. package/dist/index.min.js +0 -1
  173. package/dist/index.min.js.map +0 -1
  174. package/rollup.config.js +0 -41
  175. package/tsconfig.json +0 -20
  176. package/types/synapse-monitoring.d.ts +0 -152
package/dist/index.js DELETED
@@ -1,2584 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- 'use strict';
9
-
10
- Object.defineProperty(exports, '__esModule', { value: true });
11
-
12
- var coreHttp = require('@azure/core-http');
13
-
14
- /*! *****************************************************************************
15
- Copyright (c) Microsoft Corporation.
16
-
17
- Permission to use, copy, modify, and/or distribute this software for any
18
- purpose with or without fee is hereby granted.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
- PERFORMANCE OF THIS SOFTWARE.
27
- ***************************************************************************** */
28
- /* global Reflect, Promise */
29
-
30
- var extendStatics = function(d, b) {
31
- extendStatics = Object.setPrototypeOf ||
32
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
34
- return extendStatics(d, b);
35
- };
36
-
37
- function __extends(d, b) {
38
- extendStatics(d, b);
39
- function __() { this.constructor = d; }
40
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
- }
42
-
43
- function __awaiter(thisArg, _arguments, P, generator) {
44
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
45
- return new (P || (P = Promise))(function (resolve, reject) {
46
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
47
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
48
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
49
- step((generator = generator.apply(thisArg, _arguments || [])).next());
50
- });
51
- }
52
-
53
- function __generator(thisArg, body) {
54
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
55
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
56
- function verb(n) { return function (v) { return step([n, v]); }; }
57
- function step(op) {
58
- if (f) throw new TypeError("Generator is already executing.");
59
- while (_) try {
60
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
61
- if (y = 0, t) op = [op[0] & 2, t.value];
62
- switch (op[0]) {
63
- case 0: case 1: t = op; break;
64
- case 4: _.label++; return { value: op[1], done: false };
65
- case 5: _.label++; y = op[1]; op = [0]; continue;
66
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
67
- default:
68
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
69
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
70
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
71
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
72
- if (t[2]) _.ops.pop();
73
- _.trys.pop(); continue;
74
- }
75
- op = body.call(thisArg, _);
76
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
77
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
78
- }
79
- }
80
-
81
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
82
-
83
- function unwrapExports (x) {
84
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
85
- }
86
-
87
- function createCommonjsModule(fn, module) {
88
- return module = { exports: {} }, fn(module, module.exports), module.exports;
89
- }
90
-
91
- var Logger = createCommonjsModule(function (module, exports) {
92
- /*
93
- * Copyright The OpenTelemetry Authors
94
- *
95
- * Licensed under the Apache License, Version 2.0 (the "License");
96
- * you may not use this file except in compliance with the License.
97
- * You may obtain a copy of the License at
98
- *
99
- * https://www.apache.org/licenses/LICENSE-2.0
100
- *
101
- * Unless required by applicable law or agreed to in writing, software
102
- * distributed under the License is distributed on an "AS IS" BASIS,
103
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
104
- * See the License for the specific language governing permissions and
105
- * limitations under the License.
106
- */
107
- Object.defineProperty(exports, "__esModule", { value: true });
108
-
109
- });
110
-
111
- unwrapExports(Logger);
112
-
113
- var Time = createCommonjsModule(function (module, exports) {
114
- Object.defineProperty(exports, "__esModule", { value: true });
115
-
116
- });
117
-
118
- unwrapExports(Time);
119
-
120
- var getter = createCommonjsModule(function (module, exports) {
121
- /*
122
- * Copyright The OpenTelemetry Authors
123
- *
124
- * Licensed under the Apache License, Version 2.0 (the "License");
125
- * you may not use this file except in compliance with the License.
126
- * You may obtain a copy of the License at
127
- *
128
- * https://www.apache.org/licenses/LICENSE-2.0
129
- *
130
- * Unless required by applicable law or agreed to in writing, software
131
- * distributed under the License is distributed on an "AS IS" BASIS,
132
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
133
- * See the License for the specific language governing permissions and
134
- * limitations under the License.
135
- */
136
- Object.defineProperty(exports, "__esModule", { value: true });
137
- exports.defaultGetter = void 0;
138
- /**
139
- * Default getter which just does a simple property access. Returns
140
- * undefined if the key is not set.
141
- *
142
- * @param carrier
143
- * @param key
144
- */
145
- function defaultGetter(carrier, key) {
146
- return carrier[key];
147
- }
148
- exports.defaultGetter = defaultGetter;
149
-
150
- });
151
-
152
- unwrapExports(getter);
153
- var getter_1 = getter.defaultGetter;
154
-
155
- var HttpTextPropagator = createCommonjsModule(function (module, exports) {
156
- /*
157
- * Copyright The OpenTelemetry Authors
158
- *
159
- * Licensed under the Apache License, Version 2.0 (the "License");
160
- * you may not use this file except in compliance with the License.
161
- * You may obtain a copy of the License at
162
- *
163
- * https://www.apache.org/licenses/LICENSE-2.0
164
- *
165
- * Unless required by applicable law or agreed to in writing, software
166
- * distributed under the License is distributed on an "AS IS" BASIS,
167
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
168
- * See the License for the specific language governing permissions and
169
- * limitations under the License.
170
- */
171
- Object.defineProperty(exports, "__esModule", { value: true });
172
-
173
- });
174
-
175
- unwrapExports(HttpTextPropagator);
176
-
177
- var NoopHttpTextPropagator_1 = createCommonjsModule(function (module, exports) {
178
- /*
179
- * Copyright The OpenTelemetry Authors
180
- *
181
- * Licensed under the Apache License, Version 2.0 (the "License");
182
- * you may not use this file except in compliance with the License.
183
- * You may obtain a copy of the License at
184
- *
185
- * https://www.apache.org/licenses/LICENSE-2.0
186
- *
187
- * Unless required by applicable law or agreed to in writing, software
188
- * distributed under the License is distributed on an "AS IS" BASIS,
189
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
- * See the License for the specific language governing permissions and
191
- * limitations under the License.
192
- */
193
- Object.defineProperty(exports, "__esModule", { value: true });
194
- exports.NOOP_HTTP_TEXT_PROPAGATOR = exports.NoopHttpTextPropagator = void 0;
195
- /**
196
- * No-op implementations of {@link HttpTextPropagator}.
197
- */
198
- var NoopHttpTextPropagator = /** @class */ (function () {
199
- function NoopHttpTextPropagator() {
200
- }
201
- /** Noop inject function does nothing */
202
- NoopHttpTextPropagator.prototype.inject = function (context, carrier, setter) { };
203
- /** Noop extract function does nothing and returns the input context */
204
- NoopHttpTextPropagator.prototype.extract = function (context, carrier, getter) {
205
- return context;
206
- };
207
- return NoopHttpTextPropagator;
208
- }());
209
- exports.NoopHttpTextPropagator = NoopHttpTextPropagator;
210
- exports.NOOP_HTTP_TEXT_PROPAGATOR = new NoopHttpTextPropagator();
211
-
212
- });
213
-
214
- unwrapExports(NoopHttpTextPropagator_1);
215
- var NoopHttpTextPropagator_2 = NoopHttpTextPropagator_1.NOOP_HTTP_TEXT_PROPAGATOR;
216
- var NoopHttpTextPropagator_3 = NoopHttpTextPropagator_1.NoopHttpTextPropagator;
217
-
218
- var setter = createCommonjsModule(function (module, exports) {
219
- /*
220
- * Copyright The OpenTelemetry Authors
221
- *
222
- * Licensed under the Apache License, Version 2.0 (the "License");
223
- * you may not use this file except in compliance with the License.
224
- * You may obtain a copy of the License at
225
- *
226
- * https://www.apache.org/licenses/LICENSE-2.0
227
- *
228
- * Unless required by applicable law or agreed to in writing, software
229
- * distributed under the License is distributed on an "AS IS" BASIS,
230
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
231
- * See the License for the specific language governing permissions and
232
- * limitations under the License.
233
- */
234
- Object.defineProperty(exports, "__esModule", { value: true });
235
- exports.defaultSetter = void 0;
236
- /**
237
- * Default setter which sets value via direct property access
238
- *
239
- * @param carrier
240
- * @param key
241
- */
242
- function defaultSetter(carrier, key, value) {
243
- carrier[key] = value;
244
- }
245
- exports.defaultSetter = defaultSetter;
246
-
247
- });
248
-
249
- unwrapExports(setter);
250
- var setter_1 = setter.defaultSetter;
251
-
252
- var CorrelationContext = createCommonjsModule(function (module, exports) {
253
- /*
254
- * Copyright The OpenTelemetry Authors
255
- *
256
- * Licensed under the Apache License, Version 2.0 (the "License");
257
- * you may not use this file except in compliance with the License.
258
- * You may obtain a copy of the License at
259
- *
260
- * https://www.apache.org/licenses/LICENSE-2.0
261
- *
262
- * Unless required by applicable law or agreed to in writing, software
263
- * distributed under the License is distributed on an "AS IS" BASIS,
264
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
265
- * See the License for the specific language governing permissions and
266
- * limitations under the License.
267
- */
268
- Object.defineProperty(exports, "__esModule", { value: true });
269
-
270
- });
271
-
272
- unwrapExports(CorrelationContext);
273
-
274
- var EntryValue = createCommonjsModule(function (module, exports) {
275
- Object.defineProperty(exports, "__esModule", { value: true });
276
- exports.EntryTtl = void 0;
277
- /**
278
- * EntryTtl is an integer that represents number of hops an entry can propagate.
279
- *
280
- * For now, ONLY special values (0 and -1) are supported.
281
- */
282
- var EntryTtl;
283
- (function (EntryTtl) {
284
- /**
285
- * NO_PROPAGATION is considered to have local context and is used within the
286
- * process it created.
287
- */
288
- EntryTtl[EntryTtl["NO_PROPAGATION"] = 0] = "NO_PROPAGATION";
289
- /** UNLIMITED_PROPAGATION can propagate unlimited hops. */
290
- EntryTtl[EntryTtl["UNLIMITED_PROPAGATION"] = -1] = "UNLIMITED_PROPAGATION";
291
- })(EntryTtl = exports.EntryTtl || (exports.EntryTtl = {}));
292
-
293
- });
294
-
295
- unwrapExports(EntryValue);
296
- var EntryValue_1 = EntryValue.EntryTtl;
297
-
298
- var BatchObserverResult = createCommonjsModule(function (module, exports) {
299
- /*
300
- * Copyright The OpenTelemetry Authors
301
- *
302
- * Licensed under the Apache License, Version 2.0 (the "License");
303
- * you may not use this file except in compliance with the License.
304
- * You may obtain a copy of the License at
305
- *
306
- * https://www.apache.org/licenses/LICENSE-2.0
307
- *
308
- * Unless required by applicable law or agreed to in writing, software
309
- * distributed under the License is distributed on an "AS IS" BASIS,
310
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
311
- * See the License for the specific language governing permissions and
312
- * limitations under the License.
313
- */
314
- Object.defineProperty(exports, "__esModule", { value: true });
315
-
316
- });
317
-
318
- unwrapExports(BatchObserverResult);
319
-
320
- var BoundInstrument = createCommonjsModule(function (module, exports) {
321
- /*
322
- * Copyright The OpenTelemetry Authors
323
- *
324
- * Licensed under the Apache License, Version 2.0 (the "License");
325
- * you may not use this file except in compliance with the License.
326
- * You may obtain a copy of the License at
327
- *
328
- * https://www.apache.org/licenses/LICENSE-2.0
329
- *
330
- * Unless required by applicable law or agreed to in writing, software
331
- * distributed under the License is distributed on an "AS IS" BASIS,
332
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
333
- * See the License for the specific language governing permissions and
334
- * limitations under the License.
335
- */
336
- Object.defineProperty(exports, "__esModule", { value: true });
337
-
338
- });
339
-
340
- unwrapExports(BoundInstrument);
341
-
342
- var Meter = createCommonjsModule(function (module, exports) {
343
- /*
344
- * Copyright The OpenTelemetry Authors
345
- *
346
- * Licensed under the Apache License, Version 2.0 (the "License");
347
- * you may not use this file except in compliance with the License.
348
- * You may obtain a copy of the License at
349
- *
350
- * https://www.apache.org/licenses/LICENSE-2.0
351
- *
352
- * Unless required by applicable law or agreed to in writing, software
353
- * distributed under the License is distributed on an "AS IS" BASIS,
354
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
355
- * See the License for the specific language governing permissions and
356
- * limitations under the License.
357
- */
358
- Object.defineProperty(exports, "__esModule", { value: true });
359
-
360
- });
361
-
362
- unwrapExports(Meter);
363
-
364
- var MeterProvider = createCommonjsModule(function (module, exports) {
365
- /*
366
- * Copyright The OpenTelemetry Authors
367
- *
368
- * Licensed under the Apache License, Version 2.0 (the "License");
369
- * you may not use this file except in compliance with the License.
370
- * You may obtain a copy of the License at
371
- *
372
- * https://www.apache.org/licenses/LICENSE-2.0
373
- *
374
- * Unless required by applicable law or agreed to in writing, software
375
- * distributed under the License is distributed on an "AS IS" BASIS,
376
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
377
- * See the License for the specific language governing permissions and
378
- * limitations under the License.
379
- */
380
- Object.defineProperty(exports, "__esModule", { value: true });
381
-
382
- });
383
-
384
- unwrapExports(MeterProvider);
385
-
386
- var Metric = createCommonjsModule(function (module, exports) {
387
- /*
388
- * Copyright The OpenTelemetry Authors
389
- *
390
- * Licensed under the Apache License, Version 2.0 (the "License");
391
- * you may not use this file except in compliance with the License.
392
- * You may obtain a copy of the License at
393
- *
394
- * https://www.apache.org/licenses/LICENSE-2.0
395
- *
396
- * Unless required by applicable law or agreed to in writing, software
397
- * distributed under the License is distributed on an "AS IS" BASIS,
398
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
399
- * See the License for the specific language governing permissions and
400
- * limitations under the License.
401
- */
402
- Object.defineProperty(exports, "__esModule", { value: true });
403
- exports.ValueType = void 0;
404
- /** The Type of value. It describes how the data is reported. */
405
- var ValueType;
406
- (function (ValueType) {
407
- ValueType[ValueType["INT"] = 0] = "INT";
408
- ValueType[ValueType["DOUBLE"] = 1] = "DOUBLE";
409
- })(ValueType = exports.ValueType || (exports.ValueType = {}));
410
-
411
- });
412
-
413
- unwrapExports(Metric);
414
- var Metric_1 = Metric.ValueType;
415
-
416
- var NoopMeter_1 = createCommonjsModule(function (module, exports) {
417
- /*
418
- * Copyright The OpenTelemetry Authors
419
- *
420
- * Licensed under the Apache License, Version 2.0 (the "License");
421
- * you may not use this file except in compliance with the License.
422
- * You may obtain a copy of the License at
423
- *
424
- * https://www.apache.org/licenses/LICENSE-2.0
425
- *
426
- * Unless required by applicable law or agreed to in writing, software
427
- * distributed under the License is distributed on an "AS IS" BASIS,
428
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
429
- * See the License for the specific language governing permissions and
430
- * limitations under the License.
431
- */
432
- var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
433
- var extendStatics = function (d, b) {
434
- extendStatics = Object.setPrototypeOf ||
435
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
436
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
437
- return extendStatics(d, b);
438
- };
439
- return function (d, b) {
440
- extendStatics(d, b);
441
- function __() { this.constructor = d; }
442
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
443
- };
444
- })();
445
- Object.defineProperty(exports, "__esModule", { value: true });
446
- exports.NOOP_BATCH_OBSERVER_METRIC = exports.NOOP_SUM_OBSERVER_METRIC = exports.NOOP_UP_DOWN_SUM_OBSERVER_METRIC = exports.NOOP_VALUE_OBSERVER_METRIC = exports.NOOP_BOUND_BASE_OBSERVER = exports.NOOP_VALUE_RECORDER_METRIC = exports.NOOP_BOUND_VALUE_RECORDER = exports.NOOP_COUNTER_METRIC = exports.NOOP_BOUND_COUNTER = exports.NOOP_METER = exports.NoopBoundBaseObserver = exports.NoopBoundValueRecorder = exports.NoopBoundCounter = exports.NoopBatchObserverMetric = exports.NoopBaseObserverMetric = exports.NoopValueRecorderMetric = exports.NoopCounterMetric = exports.NoopMetric = exports.NoopMeter = void 0;
447
- /**
448
- * NoopMeter is a noop implementation of the {@link Meter} interface. It reuses
449
- * constant NoopMetrics for all of its methods.
450
- */
451
- var NoopMeter = /** @class */ (function () {
452
- function NoopMeter() {
453
- }
454
- /**
455
- * Returns constant noop value recorder.
456
- * @param name the name of the metric.
457
- * @param [options] the metric options.
458
- */
459
- NoopMeter.prototype.createValueRecorder = function (name, options) {
460
- return exports.NOOP_VALUE_RECORDER_METRIC;
461
- };
462
- /**
463
- * Returns a constant noop counter.
464
- * @param name the name of the metric.
465
- * @param [options] the metric options.
466
- */
467
- NoopMeter.prototype.createCounter = function (name, options) {
468
- return exports.NOOP_COUNTER_METRIC;
469
- };
470
- /**
471
- * Returns a constant noop UpDownCounter.
472
- * @param name the name of the metric.
473
- * @param [options] the metric options.
474
- */
475
- NoopMeter.prototype.createUpDownCounter = function (name, options) {
476
- return exports.NOOP_COUNTER_METRIC;
477
- };
478
- /**
479
- * Returns constant noop value observer.
480
- * @param name the name of the metric.
481
- * @param [options] the metric options.
482
- * @param [callback] the value observer callback
483
- */
484
- NoopMeter.prototype.createValueObserver = function (name, options, callback) {
485
- return exports.NOOP_VALUE_OBSERVER_METRIC;
486
- };
487
- /**
488
- * Returns constant noop batch observer.
489
- * @param name the name of the metric.
490
- * @param callback the batch observer callback
491
- */
492
- NoopMeter.prototype.createBatchObserver = function (name, callback) {
493
- return exports.NOOP_BATCH_OBSERVER_METRIC;
494
- };
495
- return NoopMeter;
496
- }());
497
- exports.NoopMeter = NoopMeter;
498
- var NoopMetric = /** @class */ (function () {
499
- function NoopMetric(instrument) {
500
- this._instrument = instrument;
501
- }
502
- /**
503
- * Returns a Bound Instrument associated with specified Labels.
504
- * It is recommended to keep a reference to the Bound Instrument instead of
505
- * always calling this method for every operations.
506
- * @param labels key-values pairs that are associated with a specific metric
507
- * that you want to record.
508
- */
509
- NoopMetric.prototype.bind = function (labels) {
510
- return this._instrument;
511
- };
512
- /**
513
- * Removes the Binding from the metric, if it is present.
514
- * @param labels key-values pairs that are associated with a specific metric.
515
- */
516
- NoopMetric.prototype.unbind = function (labels) {
517
- return;
518
- };
519
- /**
520
- * Clears all timeseries from the Metric.
521
- */
522
- NoopMetric.prototype.clear = function () {
523
- return;
524
- };
525
- return NoopMetric;
526
- }());
527
- exports.NoopMetric = NoopMetric;
528
- var NoopCounterMetric = /** @class */ (function (_super) {
529
- __extends(NoopCounterMetric, _super);
530
- function NoopCounterMetric() {
531
- return _super !== null && _super.apply(this, arguments) || this;
532
- }
533
- NoopCounterMetric.prototype.add = function (value, labels) {
534
- this.bind(labels).add(value);
535
- };
536
- return NoopCounterMetric;
537
- }(NoopMetric));
538
- exports.NoopCounterMetric = NoopCounterMetric;
539
- var NoopValueRecorderMetric = /** @class */ (function (_super) {
540
- __extends(NoopValueRecorderMetric, _super);
541
- function NoopValueRecorderMetric() {
542
- return _super !== null && _super.apply(this, arguments) || this;
543
- }
544
- NoopValueRecorderMetric.prototype.record = function (value, labels, correlationContext, spanContext) {
545
- if (typeof correlationContext === 'undefined') {
546
- this.bind(labels).record(value);
547
- }
548
- else if (typeof spanContext === 'undefined') {
549
- this.bind(labels).record(value, correlationContext);
550
- }
551
- else {
552
- this.bind(labels).record(value, correlationContext, spanContext);
553
- }
554
- };
555
- return NoopValueRecorderMetric;
556
- }(NoopMetric));
557
- exports.NoopValueRecorderMetric = NoopValueRecorderMetric;
558
- var NoopBaseObserverMetric = /** @class */ (function (_super) {
559
- __extends(NoopBaseObserverMetric, _super);
560
- function NoopBaseObserverMetric() {
561
- return _super !== null && _super.apply(this, arguments) || this;
562
- }
563
- NoopBaseObserverMetric.prototype.observation = function () {
564
- return {
565
- observer: this,
566
- value: 0,
567
- };
568
- };
569
- return NoopBaseObserverMetric;
570
- }(NoopMetric));
571
- exports.NoopBaseObserverMetric = NoopBaseObserverMetric;
572
- var NoopBatchObserverMetric = /** @class */ (function (_super) {
573
- __extends(NoopBatchObserverMetric, _super);
574
- function NoopBatchObserverMetric() {
575
- return _super !== null && _super.apply(this, arguments) || this;
576
- }
577
- return NoopBatchObserverMetric;
578
- }(NoopMetric));
579
- exports.NoopBatchObserverMetric = NoopBatchObserverMetric;
580
- var NoopBoundCounter = /** @class */ (function () {
581
- function NoopBoundCounter() {
582
- }
583
- NoopBoundCounter.prototype.add = function (value) {
584
- return;
585
- };
586
- return NoopBoundCounter;
587
- }());
588
- exports.NoopBoundCounter = NoopBoundCounter;
589
- var NoopBoundValueRecorder = /** @class */ (function () {
590
- function NoopBoundValueRecorder() {
591
- }
592
- NoopBoundValueRecorder.prototype.record = function (value, correlationContext, spanContext) {
593
- return;
594
- };
595
- return NoopBoundValueRecorder;
596
- }());
597
- exports.NoopBoundValueRecorder = NoopBoundValueRecorder;
598
- var NoopBoundBaseObserver = /** @class */ (function () {
599
- function NoopBoundBaseObserver() {
600
- }
601
- NoopBoundBaseObserver.prototype.update = function (value) { };
602
- return NoopBoundBaseObserver;
603
- }());
604
- exports.NoopBoundBaseObserver = NoopBoundBaseObserver;
605
- exports.NOOP_METER = new NoopMeter();
606
- exports.NOOP_BOUND_COUNTER = new NoopBoundCounter();
607
- exports.NOOP_COUNTER_METRIC = new NoopCounterMetric(exports.NOOP_BOUND_COUNTER);
608
- exports.NOOP_BOUND_VALUE_RECORDER = new NoopBoundValueRecorder();
609
- exports.NOOP_VALUE_RECORDER_METRIC = new NoopValueRecorderMetric(exports.NOOP_BOUND_VALUE_RECORDER);
610
- exports.NOOP_BOUND_BASE_OBSERVER = new NoopBoundBaseObserver();
611
- exports.NOOP_VALUE_OBSERVER_METRIC = new NoopBaseObserverMetric(exports.NOOP_BOUND_BASE_OBSERVER);
612
- exports.NOOP_UP_DOWN_SUM_OBSERVER_METRIC = new NoopBaseObserverMetric(exports.NOOP_BOUND_BASE_OBSERVER);
613
- exports.NOOP_SUM_OBSERVER_METRIC = new NoopBaseObserverMetric(exports.NOOP_BOUND_BASE_OBSERVER);
614
- exports.NOOP_BATCH_OBSERVER_METRIC = new NoopBatchObserverMetric();
615
-
616
- });
617
-
618
- unwrapExports(NoopMeter_1);
619
- var NoopMeter_2 = NoopMeter_1.NOOP_BATCH_OBSERVER_METRIC;
620
- var NoopMeter_3 = NoopMeter_1.NOOP_SUM_OBSERVER_METRIC;
621
- var NoopMeter_4 = NoopMeter_1.NOOP_UP_DOWN_SUM_OBSERVER_METRIC;
622
- var NoopMeter_5 = NoopMeter_1.NOOP_VALUE_OBSERVER_METRIC;
623
- var NoopMeter_6 = NoopMeter_1.NOOP_BOUND_BASE_OBSERVER;
624
- var NoopMeter_7 = NoopMeter_1.NOOP_VALUE_RECORDER_METRIC;
625
- var NoopMeter_8 = NoopMeter_1.NOOP_BOUND_VALUE_RECORDER;
626
- var NoopMeter_9 = NoopMeter_1.NOOP_COUNTER_METRIC;
627
- var NoopMeter_10 = NoopMeter_1.NOOP_BOUND_COUNTER;
628
- var NoopMeter_11 = NoopMeter_1.NOOP_METER;
629
- var NoopMeter_12 = NoopMeter_1.NoopBoundBaseObserver;
630
- var NoopMeter_13 = NoopMeter_1.NoopBoundValueRecorder;
631
- var NoopMeter_14 = NoopMeter_1.NoopBoundCounter;
632
- var NoopMeter_15 = NoopMeter_1.NoopBatchObserverMetric;
633
- var NoopMeter_16 = NoopMeter_1.NoopBaseObserverMetric;
634
- var NoopMeter_17 = NoopMeter_1.NoopValueRecorderMetric;
635
- var NoopMeter_18 = NoopMeter_1.NoopCounterMetric;
636
- var NoopMeter_19 = NoopMeter_1.NoopMetric;
637
- var NoopMeter_20 = NoopMeter_1.NoopMeter;
638
-
639
- var NoopMeterProvider_1 = createCommonjsModule(function (module, exports) {
640
- /*
641
- * Copyright The OpenTelemetry Authors
642
- *
643
- * Licensed under the Apache License, Version 2.0 (the "License");
644
- * you may not use this file except in compliance with the License.
645
- * You may obtain a copy of the License at
646
- *
647
- * https://www.apache.org/licenses/LICENSE-2.0
648
- *
649
- * Unless required by applicable law or agreed to in writing, software
650
- * distributed under the License is distributed on an "AS IS" BASIS,
651
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
652
- * See the License for the specific language governing permissions and
653
- * limitations under the License.
654
- */
655
- Object.defineProperty(exports, "__esModule", { value: true });
656
- exports.NOOP_METER_PROVIDER = exports.NoopMeterProvider = void 0;
657
-
658
- /**
659
- * An implementation of the {@link MeterProvider} which returns an impotent Meter
660
- * for all calls to `getMeter`
661
- */
662
- var NoopMeterProvider = /** @class */ (function () {
663
- function NoopMeterProvider() {
664
- }
665
- NoopMeterProvider.prototype.getMeter = function (_name, _version) {
666
- return NoopMeter_1.NOOP_METER;
667
- };
668
- return NoopMeterProvider;
669
- }());
670
- exports.NoopMeterProvider = NoopMeterProvider;
671
- exports.NOOP_METER_PROVIDER = new NoopMeterProvider();
672
-
673
- });
674
-
675
- unwrapExports(NoopMeterProvider_1);
676
- var NoopMeterProvider_2 = NoopMeterProvider_1.NOOP_METER_PROVIDER;
677
- var NoopMeterProvider_3 = NoopMeterProvider_1.NoopMeterProvider;
678
-
679
- var Observation = createCommonjsModule(function (module, exports) {
680
- /*
681
- * Copyright The OpenTelemetry Authors
682
- *
683
- * Licensed under the Apache License, Version 2.0 (the "License");
684
- * you may not use this file except in compliance with the License.
685
- * You may obtain a copy of the License at
686
- *
687
- * https://www.apache.org/licenses/LICENSE-2.0
688
- *
689
- * Unless required by applicable law or agreed to in writing, software
690
- * distributed under the License is distributed on an "AS IS" BASIS,
691
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
692
- * See the License for the specific language governing permissions and
693
- * limitations under the License.
694
- */
695
- Object.defineProperty(exports, "__esModule", { value: true });
696
-
697
- });
698
-
699
- unwrapExports(Observation);
700
-
701
- var ObserverResult = createCommonjsModule(function (module, exports) {
702
- /*
703
- * Copyright The OpenTelemetry Authors
704
- *
705
- * Licensed under the Apache License, Version 2.0 (the "License");
706
- * you may not use this file except in compliance with the License.
707
- * You may obtain a copy of the License at
708
- *
709
- * https://www.apache.org/licenses/LICENSE-2.0
710
- *
711
- * Unless required by applicable law or agreed to in writing, software
712
- * distributed under the License is distributed on an "AS IS" BASIS,
713
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
714
- * See the License for the specific language governing permissions and
715
- * limitations under the License.
716
- */
717
- Object.defineProperty(exports, "__esModule", { value: true });
718
-
719
- });
720
-
721
- unwrapExports(ObserverResult);
722
-
723
- var attributes = createCommonjsModule(function (module, exports) {
724
- Object.defineProperty(exports, "__esModule", { value: true });
725
-
726
- });
727
-
728
- unwrapExports(attributes);
729
-
730
- var Event = createCommonjsModule(function (module, exports) {
731
- /*
732
- * Copyright The OpenTelemetry Authors
733
- *
734
- * Licensed under the Apache License, Version 2.0 (the "License");
735
- * you may not use this file except in compliance with the License.
736
- * You may obtain a copy of the License at
737
- *
738
- * https://www.apache.org/licenses/LICENSE-2.0
739
- *
740
- * Unless required by applicable law or agreed to in writing, software
741
- * distributed under the License is distributed on an "AS IS" BASIS,
742
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
743
- * See the License for the specific language governing permissions and
744
- * limitations under the License.
745
- */
746
- Object.defineProperty(exports, "__esModule", { value: true });
747
-
748
- });
749
-
750
- unwrapExports(Event);
751
-
752
- var Plugin = createCommonjsModule(function (module, exports) {
753
- /*
754
- * Copyright The OpenTelemetry Authors
755
- *
756
- * Licensed under the Apache License, Version 2.0 (the "License");
757
- * you may not use this file except in compliance with the License.
758
- * You may obtain a copy of the License at
759
- *
760
- * https://www.apache.org/licenses/LICENSE-2.0
761
- *
762
- * Unless required by applicable law or agreed to in writing, software
763
- * distributed under the License is distributed on an "AS IS" BASIS,
764
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
765
- * See the License for the specific language governing permissions and
766
- * limitations under the License.
767
- */
768
- Object.defineProperty(exports, "__esModule", { value: true });
769
-
770
- });
771
-
772
- unwrapExports(Plugin);
773
-
774
- var link_context = createCommonjsModule(function (module, exports) {
775
- /*
776
- * Copyright The OpenTelemetry Authors
777
- *
778
- * Licensed under the Apache License, Version 2.0 (the "License");
779
- * you may not use this file except in compliance with the License.
780
- * You may obtain a copy of the License at
781
- *
782
- * https://www.apache.org/licenses/LICENSE-2.0
783
- *
784
- * Unless required by applicable law or agreed to in writing, software
785
- * distributed under the License is distributed on an "AS IS" BASIS,
786
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
787
- * See the License for the specific language governing permissions and
788
- * limitations under the License.
789
- */
790
- Object.defineProperty(exports, "__esModule", { value: true });
791
-
792
- });
793
-
794
- unwrapExports(link_context);
795
-
796
- var link = createCommonjsModule(function (module, exports) {
797
- /*
798
- * Copyright The OpenTelemetry Authors
799
- *
800
- * Licensed under the Apache License, Version 2.0 (the "License");
801
- * you may not use this file except in compliance with the License.
802
- * You may obtain a copy of the License at
803
- *
804
- * https://www.apache.org/licenses/LICENSE-2.0
805
- *
806
- * Unless required by applicable law or agreed to in writing, software
807
- * distributed under the License is distributed on an "AS IS" BASIS,
808
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
809
- * See the License for the specific language governing permissions and
810
- * limitations under the License.
811
- */
812
- Object.defineProperty(exports, "__esModule", { value: true });
813
-
814
- });
815
-
816
- unwrapExports(link);
817
-
818
- var trace_flags = createCommonjsModule(function (module, exports) {
819
- Object.defineProperty(exports, "__esModule", { value: true });
820
- exports.TraceFlags = void 0;
821
- /*
822
- * Copyright The OpenTelemetry Authors
823
- *
824
- * Licensed under the Apache License, Version 2.0 (the "License");
825
- * you may not use this file except in compliance with the License.
826
- * You may obtain a copy of the License at
827
- *
828
- * https://www.apache.org/licenses/LICENSE-2.0
829
- *
830
- * Unless required by applicable law or agreed to in writing, software
831
- * distributed under the License is distributed on an "AS IS" BASIS,
832
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
833
- * See the License for the specific language governing permissions and
834
- * limitations under the License.
835
- */
836
- var TraceFlags;
837
- (function (TraceFlags) {
838
- /** Represents no flag set. */
839
- TraceFlags[TraceFlags["NONE"] = 0] = "NONE";
840
- /** Bit to represent whether trace is sampled in trace flags. */
841
- TraceFlags[TraceFlags["SAMPLED"] = 1] = "SAMPLED";
842
- })(TraceFlags = exports.TraceFlags || (exports.TraceFlags = {}));
843
-
844
- });
845
-
846
- unwrapExports(trace_flags);
847
- var trace_flags_1 = trace_flags.TraceFlags;
848
-
849
- var NoopSpan_1 = createCommonjsModule(function (module, exports) {
850
- /*
851
- * Copyright The OpenTelemetry Authors
852
- *
853
- * Licensed under the Apache License, Version 2.0 (the "License");
854
- * you may not use this file except in compliance with the License.
855
- * You may obtain a copy of the License at
856
- *
857
- * https://www.apache.org/licenses/LICENSE-2.0
858
- *
859
- * Unless required by applicable law or agreed to in writing, software
860
- * distributed under the License is distributed on an "AS IS" BASIS,
861
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
862
- * See the License for the specific language governing permissions and
863
- * limitations under the License.
864
- */
865
- Object.defineProperty(exports, "__esModule", { value: true });
866
- exports.NOOP_SPAN = exports.NoopSpan = exports.INVALID_SPAN_ID = exports.INVALID_TRACE_ID = void 0;
867
-
868
- exports.INVALID_TRACE_ID = '0';
869
- exports.INVALID_SPAN_ID = '0';
870
- var INVALID_SPAN_CONTEXT = {
871
- traceId: exports.INVALID_TRACE_ID,
872
- spanId: exports.INVALID_SPAN_ID,
873
- traceFlags: trace_flags.TraceFlags.NONE,
874
- };
875
- /**
876
- * The NoopSpan is the default {@link Span} that is used when no Span
877
- * implementation is available. All operations are no-op including context
878
- * propagation.
879
- */
880
- var NoopSpan = /** @class */ (function () {
881
- function NoopSpan(_spanContext) {
882
- if (_spanContext === void 0) { _spanContext = INVALID_SPAN_CONTEXT; }
883
- this._spanContext = _spanContext;
884
- }
885
- // Returns a SpanContext.
886
- NoopSpan.prototype.context = function () {
887
- return this._spanContext;
888
- };
889
- // By default does nothing
890
- NoopSpan.prototype.setAttribute = function (key, value) {
891
- return this;
892
- };
893
- // By default does nothing
894
- NoopSpan.prototype.setAttributes = function (attributes) {
895
- return this;
896
- };
897
- // By default does nothing
898
- NoopSpan.prototype.addEvent = function (name, attributes) {
899
- return this;
900
- };
901
- // By default does nothing
902
- NoopSpan.prototype.setStatus = function (status) {
903
- return this;
904
- };
905
- // By default does nothing
906
- NoopSpan.prototype.updateName = function (name) {
907
- return this;
908
- };
909
- // By default does nothing
910
- NoopSpan.prototype.end = function (endTime) { };
911
- // isRecording always returns false for noopSpan.
912
- NoopSpan.prototype.isRecording = function () {
913
- return false;
914
- };
915
- return NoopSpan;
916
- }());
917
- exports.NoopSpan = NoopSpan;
918
- exports.NOOP_SPAN = new NoopSpan();
919
-
920
- });
921
-
922
- unwrapExports(NoopSpan_1);
923
- var NoopSpan_2 = NoopSpan_1.NOOP_SPAN;
924
- var NoopSpan_3 = NoopSpan_1.NoopSpan;
925
- var NoopSpan_4 = NoopSpan_1.INVALID_SPAN_ID;
926
- var NoopSpan_5 = NoopSpan_1.INVALID_TRACE_ID;
927
-
928
- var NoopTracer_1 = createCommonjsModule(function (module, exports) {
929
- /*
930
- * Copyright The OpenTelemetry Authors
931
- *
932
- * Licensed under the Apache License, Version 2.0 (the "License");
933
- * you may not use this file except in compliance with the License.
934
- * You may obtain a copy of the License at
935
- *
936
- * https://www.apache.org/licenses/LICENSE-2.0
937
- *
938
- * Unless required by applicable law or agreed to in writing, software
939
- * distributed under the License is distributed on an "AS IS" BASIS,
940
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
941
- * See the License for the specific language governing permissions and
942
- * limitations under the License.
943
- */
944
- Object.defineProperty(exports, "__esModule", { value: true });
945
- exports.NOOP_TRACER = exports.NoopTracer = void 0;
946
-
947
- /**
948
- * No-op implementations of {@link Tracer}.
949
- */
950
- var NoopTracer = /** @class */ (function () {
951
- function NoopTracer() {
952
- }
953
- NoopTracer.prototype.getCurrentSpan = function () {
954
- return NoopSpan_1.NOOP_SPAN;
955
- };
956
- // startSpan starts a noop span.
957
- NoopTracer.prototype.startSpan = function (name, options) {
958
- return NoopSpan_1.NOOP_SPAN;
959
- };
960
- NoopTracer.prototype.withSpan = function (span, fn) {
961
- return fn();
962
- };
963
- NoopTracer.prototype.bind = function (target, span) {
964
- return target;
965
- };
966
- return NoopTracer;
967
- }());
968
- exports.NoopTracer = NoopTracer;
969
- exports.NOOP_TRACER = new NoopTracer();
970
-
971
- });
972
-
973
- unwrapExports(NoopTracer_1);
974
- var NoopTracer_2 = NoopTracer_1.NOOP_TRACER;
975
- var NoopTracer_3 = NoopTracer_1.NoopTracer;
976
-
977
- var NoopTracerProvider_1 = createCommonjsModule(function (module, exports) {
978
- /*
979
- * Copyright The OpenTelemetry Authors
980
- *
981
- * Licensed under the Apache License, Version 2.0 (the "License");
982
- * you may not use this file except in compliance with the License.
983
- * You may obtain a copy of the License at
984
- *
985
- * https://www.apache.org/licenses/LICENSE-2.0
986
- *
987
- * Unless required by applicable law or agreed to in writing, software
988
- * distributed under the License is distributed on an "AS IS" BASIS,
989
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
990
- * See the License for the specific language governing permissions and
991
- * limitations under the License.
992
- */
993
- Object.defineProperty(exports, "__esModule", { value: true });
994
- exports.NOOP_TRACER_PROVIDER = exports.NoopTracerProvider = void 0;
995
-
996
- /**
997
- * An implementation of the {@link TracerProvider} which returns an impotent
998
- * Tracer for all calls to `getTracer`.
999
- *
1000
- * All operations are no-op.
1001
- */
1002
- var NoopTracerProvider = /** @class */ (function () {
1003
- function NoopTracerProvider() {
1004
- }
1005
- NoopTracerProvider.prototype.getTracer = function (_name, _version) {
1006
- return NoopTracer_1.NOOP_TRACER;
1007
- };
1008
- return NoopTracerProvider;
1009
- }());
1010
- exports.NoopTracerProvider = NoopTracerProvider;
1011
- exports.NOOP_TRACER_PROVIDER = new NoopTracerProvider();
1012
-
1013
- });
1014
-
1015
- unwrapExports(NoopTracerProvider_1);
1016
- var NoopTracerProvider_2 = NoopTracerProvider_1.NOOP_TRACER_PROVIDER;
1017
- var NoopTracerProvider_3 = NoopTracerProvider_1.NoopTracerProvider;
1018
-
1019
- var Sampler = createCommonjsModule(function (module, exports) {
1020
- /*
1021
- * Copyright The OpenTelemetry Authors
1022
- *
1023
- * Licensed under the Apache License, Version 2.0 (the "License");
1024
- * you may not use this file except in compliance with the License.
1025
- * You may obtain a copy of the License at
1026
- *
1027
- * https://www.apache.org/licenses/LICENSE-2.0
1028
- *
1029
- * Unless required by applicable law or agreed to in writing, software
1030
- * distributed under the License is distributed on an "AS IS" BASIS,
1031
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1032
- * See the License for the specific language governing permissions and
1033
- * limitations under the License.
1034
- */
1035
- Object.defineProperty(exports, "__esModule", { value: true });
1036
-
1037
- });
1038
-
1039
- unwrapExports(Sampler);
1040
-
1041
- var SamplingResult = createCommonjsModule(function (module, exports) {
1042
- /*
1043
- * Copyright The OpenTelemetry Authors
1044
- *
1045
- * Licensed under the Apache License, Version 2.0 (the "License");
1046
- * you may not use this file except in compliance with the License.
1047
- * You may obtain a copy of the License at
1048
- *
1049
- * https://www.apache.org/licenses/LICENSE-2.0
1050
- *
1051
- * Unless required by applicable law or agreed to in writing, software
1052
- * distributed under the License is distributed on an "AS IS" BASIS,
1053
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1054
- * See the License for the specific language governing permissions and
1055
- * limitations under the License.
1056
- */
1057
- Object.defineProperty(exports, "__esModule", { value: true });
1058
- exports.SamplingDecision = void 0;
1059
- /**
1060
- * A sampling decision that determines how a {@link Span} will be recorded
1061
- * and collected.
1062
- */
1063
- var SamplingDecision;
1064
- (function (SamplingDecision) {
1065
- /**
1066
- * `Span.isRecording() === false`, span will not be recorded and all events
1067
- * and attributes will be dropped.
1068
- */
1069
- SamplingDecision[SamplingDecision["NOT_RECORD"] = 0] = "NOT_RECORD";
1070
- /**
1071
- * `Span.isRecording() === true`, but `Sampled` flag in {@link TraceFlags}
1072
- * MUST NOT be set.
1073
- */
1074
- SamplingDecision[SamplingDecision["RECORD"] = 1] = "RECORD";
1075
- /**
1076
- * `Span.isRecording() === true` AND `Sampled` flag in {@link TraceFlags}
1077
- * MUST be set.
1078
- */
1079
- SamplingDecision[SamplingDecision["RECORD_AND_SAMPLED"] = 2] = "RECORD_AND_SAMPLED";
1080
- })(SamplingDecision = exports.SamplingDecision || (exports.SamplingDecision = {}));
1081
-
1082
- });
1083
-
1084
- unwrapExports(SamplingResult);
1085
- var SamplingResult_1 = SamplingResult.SamplingDecision;
1086
-
1087
- var span_context = createCommonjsModule(function (module, exports) {
1088
- /*
1089
- * Copyright The OpenTelemetry Authors
1090
- *
1091
- * Licensed under the Apache License, Version 2.0 (the "License");
1092
- * you may not use this file except in compliance with the License.
1093
- * You may obtain a copy of the License at
1094
- *
1095
- * https://www.apache.org/licenses/LICENSE-2.0
1096
- *
1097
- * Unless required by applicable law or agreed to in writing, software
1098
- * distributed under the License is distributed on an "AS IS" BASIS,
1099
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1100
- * See the License for the specific language governing permissions and
1101
- * limitations under the License.
1102
- */
1103
- Object.defineProperty(exports, "__esModule", { value: true });
1104
-
1105
- });
1106
-
1107
- unwrapExports(span_context);
1108
-
1109
- var span_kind = createCommonjsModule(function (module, exports) {
1110
- Object.defineProperty(exports, "__esModule", { value: true });
1111
- exports.SpanKind = void 0;
1112
- /*
1113
- * Copyright The OpenTelemetry Authors
1114
- *
1115
- * Licensed under the Apache License, Version 2.0 (the "License");
1116
- * you may not use this file except in compliance with the License.
1117
- * You may obtain a copy of the License at
1118
- *
1119
- * https://www.apache.org/licenses/LICENSE-2.0
1120
- *
1121
- * Unless required by applicable law or agreed to in writing, software
1122
- * distributed under the License is distributed on an "AS IS" BASIS,
1123
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1124
- * See the License for the specific language governing permissions and
1125
- * limitations under the License.
1126
- */
1127
- var SpanKind;
1128
- (function (SpanKind) {
1129
- /** Default value. Indicates that the span is used internally. */
1130
- SpanKind[SpanKind["INTERNAL"] = 0] = "INTERNAL";
1131
- /**
1132
- * Indicates that the span covers server-side handling of an RPC or other
1133
- * remote request.
1134
- */
1135
- SpanKind[SpanKind["SERVER"] = 1] = "SERVER";
1136
- /**
1137
- * Indicates that the span covers the client-side wrapper around an RPC or
1138
- * other remote request.
1139
- */
1140
- SpanKind[SpanKind["CLIENT"] = 2] = "CLIENT";
1141
- /**
1142
- * Indicates that the span describes producer sending a message to a
1143
- * broker. Unlike client and server, there is no direct critical path latency
1144
- * relationship between producer and consumer spans.
1145
- */
1146
- SpanKind[SpanKind["PRODUCER"] = 3] = "PRODUCER";
1147
- /**
1148
- * Indicates that the span describes consumer receiving a message from a
1149
- * broker. Unlike client and server, there is no direct critical path latency
1150
- * relationship between producer and consumer spans.
1151
- */
1152
- SpanKind[SpanKind["CONSUMER"] = 4] = "CONSUMER";
1153
- })(SpanKind = exports.SpanKind || (exports.SpanKind = {}));
1154
-
1155
- });
1156
-
1157
- unwrapExports(span_kind);
1158
- var span_kind_1 = span_kind.SpanKind;
1159
-
1160
- var span = createCommonjsModule(function (module, exports) {
1161
- /*
1162
- * Copyright The OpenTelemetry Authors
1163
- *
1164
- * Licensed under the Apache License, Version 2.0 (the "License");
1165
- * you may not use this file except in compliance with the License.
1166
- * You may obtain a copy of the License at
1167
- *
1168
- * https://www.apache.org/licenses/LICENSE-2.0
1169
- *
1170
- * Unless required by applicable law or agreed to in writing, software
1171
- * distributed under the License is distributed on an "AS IS" BASIS,
1172
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1173
- * See the License for the specific language governing permissions and
1174
- * limitations under the License.
1175
- */
1176
- Object.defineProperty(exports, "__esModule", { value: true });
1177
-
1178
- });
1179
-
1180
- unwrapExports(span);
1181
-
1182
- var SpanOptions = createCommonjsModule(function (module, exports) {
1183
- /*
1184
- * Copyright The OpenTelemetry Authors
1185
- *
1186
- * Licensed under the Apache License, Version 2.0 (the "License");
1187
- * you may not use this file except in compliance with the License.
1188
- * You may obtain a copy of the License at
1189
- *
1190
- * https://www.apache.org/licenses/LICENSE-2.0
1191
- *
1192
- * Unless required by applicable law or agreed to in writing, software
1193
- * distributed under the License is distributed on an "AS IS" BASIS,
1194
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1195
- * See the License for the specific language governing permissions and
1196
- * limitations under the License.
1197
- */
1198
- Object.defineProperty(exports, "__esModule", { value: true });
1199
-
1200
- });
1201
-
1202
- unwrapExports(SpanOptions);
1203
-
1204
- var status = createCommonjsModule(function (module, exports) {
1205
- Object.defineProperty(exports, "__esModule", { value: true });
1206
- exports.CanonicalCode = void 0;
1207
- /**
1208
- * An enumeration of canonical status codes.
1209
- */
1210
- var CanonicalCode;
1211
- (function (CanonicalCode) {
1212
- /**
1213
- * Not an error; returned on success
1214
- */
1215
- CanonicalCode[CanonicalCode["OK"] = 0] = "OK";
1216
- /**
1217
- * The operation was cancelled (typically by the caller).
1218
- */
1219
- CanonicalCode[CanonicalCode["CANCELLED"] = 1] = "CANCELLED";
1220
- /**
1221
- * Unknown error. An example of where this error may be returned is
1222
- * if a status value received from another address space belongs to
1223
- * an error-space that is not known in this address space. Also
1224
- * errors raised by APIs that do not return enough error information
1225
- * may be converted to this error.
1226
- */
1227
- CanonicalCode[CanonicalCode["UNKNOWN"] = 2] = "UNKNOWN";
1228
- /**
1229
- * Client specified an invalid argument. Note that this differs
1230
- * from FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments
1231
- * that are problematic regardless of the state of the system
1232
- * (e.g., a malformed file name).
1233
- */
1234
- CanonicalCode[CanonicalCode["INVALID_ARGUMENT"] = 3] = "INVALID_ARGUMENT";
1235
- /**
1236
- * Deadline expired before operation could complete. For operations
1237
- * that change the state of the system, this error may be returned
1238
- * even if the operation has completed successfully. For example, a
1239
- * successful response from a server could have been delayed long
1240
- * enough for the deadline to expire.
1241
- */
1242
- CanonicalCode[CanonicalCode["DEADLINE_EXCEEDED"] = 4] = "DEADLINE_EXCEEDED";
1243
- /**
1244
- * Some requested entity (e.g., file or directory) was not found.
1245
- */
1246
- CanonicalCode[CanonicalCode["NOT_FOUND"] = 5] = "NOT_FOUND";
1247
- /**
1248
- * Some entity that we attempted to create (e.g., file or directory)
1249
- * already exists.
1250
- */
1251
- CanonicalCode[CanonicalCode["ALREADY_EXISTS"] = 6] = "ALREADY_EXISTS";
1252
- /**
1253
- * The caller does not have permission to execute the specified
1254
- * operation. PERMISSION_DENIED must not be used for rejections
1255
- * caused by exhausting some resource (use RESOURCE_EXHAUSTED
1256
- * instead for those errors). PERMISSION_DENIED must not be
1257
- * used if the caller can not be identified (use UNAUTHENTICATED
1258
- * instead for those errors).
1259
- */
1260
- CanonicalCode[CanonicalCode["PERMISSION_DENIED"] = 7] = "PERMISSION_DENIED";
1261
- /**
1262
- * Some resource has been exhausted, perhaps a per-user quota, or
1263
- * perhaps the entire file system is out of space.
1264
- */
1265
- CanonicalCode[CanonicalCode["RESOURCE_EXHAUSTED"] = 8] = "RESOURCE_EXHAUSTED";
1266
- /**
1267
- * Operation was rejected because the system is not in a state
1268
- * required for the operation's execution. For example, directory
1269
- * to be deleted may be non-empty, an rmdir operation is applied to
1270
- * a non-directory, etc.
1271
- *
1272
- * A litmus test that may help a service implementor in deciding
1273
- * between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE:
1274
- *
1275
- * - Use UNAVAILABLE if the client can retry just the failing call.
1276
- * - Use ABORTED if the client should retry at a higher-level
1277
- * (e.g., restarting a read-modify-write sequence).
1278
- * - Use FAILED_PRECONDITION if the client should not retry until
1279
- * the system state has been explicitly fixed. E.g., if an "rmdir"
1280
- * fails because the directory is non-empty, FAILED_PRECONDITION
1281
- * should be returned since the client should not retry unless
1282
- * they have first fixed up the directory by deleting files from it.
1283
- * - Use FAILED_PRECONDITION if the client performs conditional
1284
- * REST Get/Update/Delete on a resource and the resource on the
1285
- * server does not match the condition. E.g., conflicting
1286
- * read-modify-write on the same resource.
1287
- */
1288
- CanonicalCode[CanonicalCode["FAILED_PRECONDITION"] = 9] = "FAILED_PRECONDITION";
1289
- /**
1290
- * The operation was aborted, typically due to a concurrency issue
1291
- * like sequencer check failures, transaction aborts, etc.
1292
- *
1293
- * See litmus test above for deciding between FAILED_PRECONDITION,
1294
- * ABORTED, and UNAVAILABLE.
1295
- */
1296
- CanonicalCode[CanonicalCode["ABORTED"] = 10] = "ABORTED";
1297
- /**
1298
- * Operation was attempted past the valid range. E.g., seeking or
1299
- * reading past end of file.
1300
- *
1301
- * Unlike INVALID_ARGUMENT, this error indicates a problem that may
1302
- * be fixed if the system state changes. For example, a 32-bit file
1303
- * system will generate INVALID_ARGUMENT if asked to read at an
1304
- * offset that is not in the range [0,2^32-1], but it will generate
1305
- * OUT_OF_RANGE if asked to read from an offset past the current
1306
- * file size.
1307
- *
1308
- * There is a fair bit of overlap between FAILED_PRECONDITION and
1309
- * OUT_OF_RANGE. We recommend using OUT_OF_RANGE (the more specific
1310
- * error) when it applies so that callers who are iterating through
1311
- * a space can easily look for an OUT_OF_RANGE error to detect when
1312
- * they are done.
1313
- */
1314
- CanonicalCode[CanonicalCode["OUT_OF_RANGE"] = 11] = "OUT_OF_RANGE";
1315
- /**
1316
- * Operation is not implemented or not supported/enabled in this service.
1317
- */
1318
- CanonicalCode[CanonicalCode["UNIMPLEMENTED"] = 12] = "UNIMPLEMENTED";
1319
- /**
1320
- * Internal errors. Means some invariants expected by underlying
1321
- * system has been broken. If you see one of these errors,
1322
- * something is very broken.
1323
- */
1324
- CanonicalCode[CanonicalCode["INTERNAL"] = 13] = "INTERNAL";
1325
- /**
1326
- * The service is currently unavailable. This is a most likely a
1327
- * transient condition and may be corrected by retrying with
1328
- * a backoff.
1329
- *
1330
- * See litmus test above for deciding between FAILED_PRECONDITION,
1331
- * ABORTED, and UNAVAILABLE.
1332
- */
1333
- CanonicalCode[CanonicalCode["UNAVAILABLE"] = 14] = "UNAVAILABLE";
1334
- /**
1335
- * Unrecoverable data loss or corruption.
1336
- */
1337
- CanonicalCode[CanonicalCode["DATA_LOSS"] = 15] = "DATA_LOSS";
1338
- /**
1339
- * The request does not have valid authentication credentials for the
1340
- * operation.
1341
- */
1342
- CanonicalCode[CanonicalCode["UNAUTHENTICATED"] = 16] = "UNAUTHENTICATED";
1343
- })(CanonicalCode = exports.CanonicalCode || (exports.CanonicalCode = {}));
1344
-
1345
- });
1346
-
1347
- unwrapExports(status);
1348
- var status_1 = status.CanonicalCode;
1349
-
1350
- var TimedEvent = createCommonjsModule(function (module, exports) {
1351
- /*
1352
- * Copyright The OpenTelemetry Authors
1353
- *
1354
- * Licensed under the Apache License, Version 2.0 (the "License");
1355
- * you may not use this file except in compliance with the License.
1356
- * You may obtain a copy of the License at
1357
- *
1358
- * https://www.apache.org/licenses/LICENSE-2.0
1359
- *
1360
- * Unless required by applicable law or agreed to in writing, software
1361
- * distributed under the License is distributed on an "AS IS" BASIS,
1362
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1363
- * See the License for the specific language governing permissions and
1364
- * limitations under the License.
1365
- */
1366
- Object.defineProperty(exports, "__esModule", { value: true });
1367
-
1368
- });
1369
-
1370
- unwrapExports(TimedEvent);
1371
-
1372
- var trace_state = createCommonjsModule(function (module, exports) {
1373
- Object.defineProperty(exports, "__esModule", { value: true });
1374
-
1375
- });
1376
-
1377
- unwrapExports(trace_state);
1378
-
1379
- var tracer_provider = createCommonjsModule(function (module, exports) {
1380
- /*
1381
- * Copyright The OpenTelemetry Authors
1382
- *
1383
- * Licensed under the Apache License, Version 2.0 (the "License");
1384
- * you may not use this file except in compliance with the License.
1385
- * You may obtain a copy of the License at
1386
- *
1387
- * https://www.apache.org/licenses/LICENSE-2.0
1388
- *
1389
- * Unless required by applicable law or agreed to in writing, software
1390
- * distributed under the License is distributed on an "AS IS" BASIS,
1391
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1392
- * See the License for the specific language governing permissions and
1393
- * limitations under the License.
1394
- */
1395
- Object.defineProperty(exports, "__esModule", { value: true });
1396
-
1397
- });
1398
-
1399
- unwrapExports(tracer_provider);
1400
-
1401
- var tracer = createCommonjsModule(function (module, exports) {
1402
- /*
1403
- * Copyright The OpenTelemetry Authors
1404
- *
1405
- * Licensed under the Apache License, Version 2.0 (the "License");
1406
- * you may not use this file except in compliance with the License.
1407
- * You may obtain a copy of the License at
1408
- *
1409
- * https://www.apache.org/licenses/LICENSE-2.0
1410
- *
1411
- * Unless required by applicable law or agreed to in writing, software
1412
- * distributed under the License is distributed on an "AS IS" BASIS,
1413
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
- * See the License for the specific language governing permissions and
1415
- * limitations under the License.
1416
- */
1417
- Object.defineProperty(exports, "__esModule", { value: true });
1418
-
1419
- });
1420
-
1421
- unwrapExports(tracer);
1422
-
1423
- var types = createCommonjsModule(function (module, exports) {
1424
- /*
1425
- * Copyright The OpenTelemetry Authors
1426
- *
1427
- * Licensed under the Apache License, Version 2.0 (the "License");
1428
- * you may not use this file except in compliance with the License.
1429
- * You may obtain a copy of the License at
1430
- *
1431
- * https://www.apache.org/licenses/LICENSE-2.0
1432
- *
1433
- * Unless required by applicable law or agreed to in writing, software
1434
- * distributed under the License is distributed on an "AS IS" BASIS,
1435
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1436
- * See the License for the specific language governing permissions and
1437
- * limitations under the License.
1438
- */
1439
- Object.defineProperty(exports, "__esModule", { value: true });
1440
-
1441
- });
1442
-
1443
- unwrapExports(types);
1444
-
1445
- var context = createCommonjsModule(function (module, exports) {
1446
- Object.defineProperty(exports, "__esModule", { value: true });
1447
- exports.Context = void 0;
1448
- /*
1449
- * Copyright The OpenTelemetry Authors
1450
- *
1451
- * Licensed under the Apache License, Version 2.0 (the "License");
1452
- * you may not use this file except in compliance with the License.
1453
- * You may obtain a copy of the License at
1454
- *
1455
- * https://www.apache.org/licenses/LICENSE-2.0
1456
- *
1457
- * Unless required by applicable law or agreed to in writing, software
1458
- * distributed under the License is distributed on an "AS IS" BASIS,
1459
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1460
- * See the License for the specific language governing permissions and
1461
- * limitations under the License.
1462
- */
1463
- var Context = /** @class */ (function () {
1464
- /**
1465
- * Construct a new context which inherits values from an optional parent context.
1466
- *
1467
- * @param parentContext a context from which to inherit values
1468
- */
1469
- function Context(parentContext) {
1470
- this._currentContext = parentContext ? new Map(parentContext) : new Map();
1471
- }
1472
- /** Get a key to uniquely identify a context value */
1473
- Context.createKey = function (description) {
1474
- return Symbol(description);
1475
- };
1476
- /**
1477
- * Get a value from the context.
1478
- *
1479
- * @param key key which identifies a context value
1480
- */
1481
- Context.prototype.getValue = function (key) {
1482
- return this._currentContext.get(key);
1483
- };
1484
- /**
1485
- * Create a new context which inherits from this context and has
1486
- * the given key set to the given value.
1487
- *
1488
- * @param key context key for which to set the value
1489
- * @param value value to set for the given key
1490
- */
1491
- Context.prototype.setValue = function (key, value) {
1492
- var context = new Context(this._currentContext);
1493
- context._currentContext.set(key, value);
1494
- return context;
1495
- };
1496
- /**
1497
- * Return a new context which inherits from this context but does
1498
- * not contain a value for the given key.
1499
- *
1500
- * @param key context key for which to clear a value
1501
- */
1502
- Context.prototype.deleteValue = function (key) {
1503
- var context = new Context(this._currentContext);
1504
- context._currentContext.delete(key);
1505
- return context;
1506
- };
1507
- /** The root context is used as the default parent context when there is no active context */
1508
- Context.ROOT_CONTEXT = new Context();
1509
- /**
1510
- * This is another identifier to the root context which allows developers to easily search the
1511
- * codebase for direct uses of context which need to be removed in later PRs.
1512
- *
1513
- * It's existence is temporary and it should be removed when all references are fixed.
1514
- */
1515
- Context.TODO = Context.ROOT_CONTEXT;
1516
- return Context;
1517
- }());
1518
- exports.Context = Context;
1519
-
1520
- });
1521
-
1522
- unwrapExports(context);
1523
- var context_1 = context.Context;
1524
-
1525
- var NoopContextManager_1 = createCommonjsModule(function (module, exports) {
1526
- /*
1527
- * Copyright The OpenTelemetry Authors
1528
- *
1529
- * Licensed under the Apache License, Version 2.0 (the "License");
1530
- * you may not use this file except in compliance with the License.
1531
- * You may obtain a copy of the License at
1532
- *
1533
- * https://www.apache.org/licenses/LICENSE-2.0
1534
- *
1535
- * Unless required by applicable law or agreed to in writing, software
1536
- * distributed under the License is distributed on an "AS IS" BASIS,
1537
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1538
- * See the License for the specific language governing permissions and
1539
- * limitations under the License.
1540
- */
1541
- Object.defineProperty(exports, "__esModule", { value: true });
1542
- exports.NoopContextManager = void 0;
1543
-
1544
- var NoopContextManager = /** @class */ (function () {
1545
- function NoopContextManager() {
1546
- }
1547
- NoopContextManager.prototype.active = function () {
1548
- return context.Context.ROOT_CONTEXT;
1549
- };
1550
- NoopContextManager.prototype.with = function (context, fn) {
1551
- return fn();
1552
- };
1553
- NoopContextManager.prototype.bind = function (target, context) {
1554
- return target;
1555
- };
1556
- NoopContextManager.prototype.enable = function () {
1557
- return this;
1558
- };
1559
- NoopContextManager.prototype.disable = function () {
1560
- return this;
1561
- };
1562
- return NoopContextManager;
1563
- }());
1564
- exports.NoopContextManager = NoopContextManager;
1565
-
1566
- });
1567
-
1568
- unwrapExports(NoopContextManager_1);
1569
- var NoopContextManager_2 = NoopContextManager_1.NoopContextManager;
1570
-
1571
- var src = createCommonjsModule(function (module, exports) {
1572
- /*
1573
- * Copyright The OpenTelemetry Authors
1574
- *
1575
- * Licensed under the Apache License, Version 2.0 (the "License");
1576
- * you may not use this file except in compliance with the License.
1577
- * You may obtain a copy of the License at
1578
- *
1579
- * https://www.apache.org/licenses/LICENSE-2.0
1580
- *
1581
- * Unless required by applicable law or agreed to in writing, software
1582
- * distributed under the License is distributed on an "AS IS" BASIS,
1583
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1584
- * See the License for the specific language governing permissions and
1585
- * limitations under the License.
1586
- */
1587
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1588
- if (k2 === undefined) k2 = k;
1589
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
1590
- }) : (function(o, m, k, k2) {
1591
- if (k2 === undefined) k2 = k;
1592
- o[k2] = m[k];
1593
- }));
1594
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
1595
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
1596
- };
1597
- Object.defineProperty(exports, "__esModule", { value: true });
1598
- __exportStar(types, exports);
1599
- __exportStar(context, exports);
1600
- __exportStar(NoopContextManager_1, exports);
1601
-
1602
- });
1603
-
1604
- unwrapExports(src);
1605
-
1606
- var globalThis_1 = createCommonjsModule(function (module, exports) {
1607
- /*
1608
- * Copyright The OpenTelemetry Authors
1609
- *
1610
- * Licensed under the Apache License, Version 2.0 (the "License");
1611
- * you may not use this file except in compliance with the License.
1612
- * You may obtain a copy of the License at
1613
- *
1614
- * https://www.apache.org/licenses/LICENSE-2.0
1615
- *
1616
- * Unless required by applicable law or agreed to in writing, software
1617
- * distributed under the License is distributed on an "AS IS" BASIS,
1618
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1619
- * See the License for the specific language governing permissions and
1620
- * limitations under the License.
1621
- */
1622
- Object.defineProperty(exports, "__esModule", { value: true });
1623
- exports._globalThis = void 0;
1624
- /** only globals that common to node and browsers are allowed */
1625
- // eslint-disable-next-line node/no-unsupported-features/es-builtins
1626
- exports._globalThis = typeof globalThis === 'object' ? globalThis : commonjsGlobal;
1627
-
1628
- });
1629
-
1630
- unwrapExports(globalThis_1);
1631
- var globalThis_2 = globalThis_1._globalThis;
1632
-
1633
- var node = createCommonjsModule(function (module, exports) {
1634
- /*
1635
- * Copyright The OpenTelemetry Authors
1636
- *
1637
- * Licensed under the Apache License, Version 2.0 (the "License");
1638
- * you may not use this file except in compliance with the License.
1639
- * You may obtain a copy of the License at
1640
- *
1641
- * https://www.apache.org/licenses/LICENSE-2.0
1642
- *
1643
- * Unless required by applicable law or agreed to in writing, software
1644
- * distributed under the License is distributed on an "AS IS" BASIS,
1645
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1646
- * See the License for the specific language governing permissions and
1647
- * limitations under the License.
1648
- */
1649
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1650
- if (k2 === undefined) k2 = k;
1651
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
1652
- }) : (function(o, m, k, k2) {
1653
- if (k2 === undefined) k2 = k;
1654
- o[k2] = m[k];
1655
- }));
1656
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
1657
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
1658
- };
1659
- Object.defineProperty(exports, "__esModule", { value: true });
1660
- __exportStar(globalThis_1, exports);
1661
-
1662
- });
1663
-
1664
- unwrapExports(node);
1665
-
1666
- var platform = createCommonjsModule(function (module, exports) {
1667
- /*
1668
- * Copyright The OpenTelemetry Authors
1669
- *
1670
- * Licensed under the Apache License, Version 2.0 (the "License");
1671
- * you may not use this file except in compliance with the License.
1672
- * You may obtain a copy of the License at
1673
- *
1674
- * https://www.apache.org/licenses/LICENSE-2.0
1675
- *
1676
- * Unless required by applicable law or agreed to in writing, software
1677
- * distributed under the License is distributed on an "AS IS" BASIS,
1678
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1679
- * See the License for the specific language governing permissions and
1680
- * limitations under the License.
1681
- */
1682
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1683
- if (k2 === undefined) k2 = k;
1684
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
1685
- }) : (function(o, m, k, k2) {
1686
- if (k2 === undefined) k2 = k;
1687
- o[k2] = m[k];
1688
- }));
1689
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
1690
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
1691
- };
1692
- Object.defineProperty(exports, "__esModule", { value: true });
1693
- __exportStar(node, exports);
1694
-
1695
- });
1696
-
1697
- unwrapExports(platform);
1698
-
1699
- var globalUtils = createCommonjsModule(function (module, exports) {
1700
- /*
1701
- * Copyright The OpenTelemetry Authors
1702
- *
1703
- * Licensed under the Apache License, Version 2.0 (the "License");
1704
- * you may not use this file except in compliance with the License.
1705
- * You may obtain a copy of the License at
1706
- *
1707
- * https://www.apache.org/licenses/LICENSE-2.0
1708
- *
1709
- * Unless required by applicable law or agreed to in writing, software
1710
- * distributed under the License is distributed on an "AS IS" BASIS,
1711
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1712
- * See the License for the specific language governing permissions and
1713
- * limitations under the License.
1714
- */
1715
- Object.defineProperty(exports, "__esModule", { value: true });
1716
- exports.API_BACKWARDS_COMPATIBILITY_VERSION = exports.makeGetter = exports._global = exports.GLOBAL_TRACE_API_KEY = exports.GLOBAL_PROPAGATION_API_KEY = exports.GLOBAL_METRICS_API_KEY = exports.GLOBAL_CONTEXT_MANAGER_API_KEY = void 0;
1717
-
1718
- exports.GLOBAL_CONTEXT_MANAGER_API_KEY = Symbol.for('io.opentelemetry.js.api.context');
1719
- exports.GLOBAL_METRICS_API_KEY = Symbol.for('io.opentelemetry.js.api.metrics');
1720
- exports.GLOBAL_PROPAGATION_API_KEY = Symbol.for('io.opentelemetry.js.api.propagation');
1721
- exports.GLOBAL_TRACE_API_KEY = Symbol.for('io.opentelemetry.js.api.trace');
1722
- exports._global = platform._globalThis;
1723
- /**
1724
- * Make a function which accepts a version integer and returns the instance of an API if the version
1725
- * is compatible, or a fallback version (usually NOOP) if it is not.
1726
- *
1727
- * @param requiredVersion Backwards compatibility version which is required to return the instance
1728
- * @param instance Instance which should be returned if the required version is compatible
1729
- * @param fallback Fallback instance, usually NOOP, which will be returned if the required version is not compatible
1730
- */
1731
- function makeGetter(requiredVersion, instance, fallback) {
1732
- return function (version) {
1733
- return version === requiredVersion ? instance : fallback;
1734
- };
1735
- }
1736
- exports.makeGetter = makeGetter;
1737
- /**
1738
- * A number which should be incremented each time a backwards incompatible
1739
- * change is made to the API. This number is used when an API package
1740
- * attempts to access the global API to ensure it is getting a compatible
1741
- * version. If the global API is not compatible with the API package
1742
- * attempting to get it, a NOOP API implementation will be returned.
1743
- */
1744
- exports.API_BACKWARDS_COMPATIBILITY_VERSION = 0;
1745
-
1746
- });
1747
-
1748
- unwrapExports(globalUtils);
1749
- var globalUtils_1 = globalUtils.API_BACKWARDS_COMPATIBILITY_VERSION;
1750
- var globalUtils_2 = globalUtils.makeGetter;
1751
- var globalUtils_3 = globalUtils._global;
1752
- var globalUtils_4 = globalUtils.GLOBAL_TRACE_API_KEY;
1753
- var globalUtils_5 = globalUtils.GLOBAL_PROPAGATION_API_KEY;
1754
- var globalUtils_6 = globalUtils.GLOBAL_METRICS_API_KEY;
1755
- var globalUtils_7 = globalUtils.GLOBAL_CONTEXT_MANAGER_API_KEY;
1756
-
1757
- var context$1 = createCommonjsModule(function (module, exports) {
1758
- /*
1759
- * Copyright The OpenTelemetry Authors
1760
- *
1761
- * Licensed under the Apache License, Version 2.0 (the "License");
1762
- * you may not use this file except in compliance with the License.
1763
- * You may obtain a copy of the License at
1764
- *
1765
- * https://www.apache.org/licenses/LICENSE-2.0
1766
- *
1767
- * Unless required by applicable law or agreed to in writing, software
1768
- * distributed under the License is distributed on an "AS IS" BASIS,
1769
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1770
- * See the License for the specific language governing permissions and
1771
- * limitations under the License.
1772
- */
1773
- Object.defineProperty(exports, "__esModule", { value: true });
1774
- exports.ContextAPI = void 0;
1775
-
1776
-
1777
- var NOOP_CONTEXT_MANAGER = new src.NoopContextManager();
1778
- /**
1779
- * Singleton object which represents the entry point to the OpenTelemetry Context API
1780
- */
1781
- var ContextAPI = /** @class */ (function () {
1782
- /** Empty private constructor prevents end users from constructing a new instance of the API */
1783
- function ContextAPI() {
1784
- }
1785
- /** Get the singleton instance of the Context API */
1786
- ContextAPI.getInstance = function () {
1787
- if (!this._instance) {
1788
- this._instance = new ContextAPI();
1789
- }
1790
- return this._instance;
1791
- };
1792
- /**
1793
- * Set the current context manager. Returns the initialized context manager
1794
- */
1795
- ContextAPI.prototype.setGlobalContextManager = function (contextManager) {
1796
- if (globalUtils._global[globalUtils.GLOBAL_CONTEXT_MANAGER_API_KEY]) {
1797
- // global context manager has already been set
1798
- return this._getContextManager();
1799
- }
1800
- globalUtils._global[globalUtils.GLOBAL_CONTEXT_MANAGER_API_KEY] = globalUtils.makeGetter(globalUtils.API_BACKWARDS_COMPATIBILITY_VERSION, contextManager, NOOP_CONTEXT_MANAGER);
1801
- return contextManager;
1802
- };
1803
- /**
1804
- * Get the currently active context
1805
- */
1806
- ContextAPI.prototype.active = function () {
1807
- return this._getContextManager().active();
1808
- };
1809
- /**
1810
- * Execute a function with an active context
1811
- *
1812
- * @param context context to be active during function execution
1813
- * @param fn function to execute in a context
1814
- */
1815
- ContextAPI.prototype.with = function (context, fn) {
1816
- return this._getContextManager().with(context, fn);
1817
- };
1818
- /**
1819
- * Bind a context to a target function or event emitter
1820
- *
1821
- * @param target function or event emitter to bind
1822
- * @param context context to bind to the event emitter or function. Defaults to the currently active context
1823
- */
1824
- ContextAPI.prototype.bind = function (target, context) {
1825
- if (context === void 0) { context = this.active(); }
1826
- return this._getContextManager().bind(target, context);
1827
- };
1828
- ContextAPI.prototype._getContextManager = function () {
1829
- var _a, _b;
1830
- return ((_b = (_a = globalUtils._global[globalUtils.GLOBAL_CONTEXT_MANAGER_API_KEY]) === null || _a === void 0 ? void 0 : _a.call(globalUtils._global, globalUtils.API_BACKWARDS_COMPATIBILITY_VERSION)) !== null && _b !== void 0 ? _b : NOOP_CONTEXT_MANAGER);
1831
- };
1832
- /** Disable and remove the global context manager */
1833
- ContextAPI.prototype.disable = function () {
1834
- this._getContextManager().disable();
1835
- delete globalUtils._global[globalUtils.GLOBAL_CONTEXT_MANAGER_API_KEY];
1836
- };
1837
- return ContextAPI;
1838
- }());
1839
- exports.ContextAPI = ContextAPI;
1840
-
1841
- });
1842
-
1843
- unwrapExports(context$1);
1844
- var context_1$1 = context$1.ContextAPI;
1845
-
1846
- var trace = createCommonjsModule(function (module, exports) {
1847
- /*
1848
- * Copyright The OpenTelemetry Authors
1849
- *
1850
- * Licensed under the Apache License, Version 2.0 (the "License");
1851
- * you may not use this file except in compliance with the License.
1852
- * You may obtain a copy of the License at
1853
- *
1854
- * https://www.apache.org/licenses/LICENSE-2.0
1855
- *
1856
- * Unless required by applicable law or agreed to in writing, software
1857
- * distributed under the License is distributed on an "AS IS" BASIS,
1858
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1859
- * See the License for the specific language governing permissions and
1860
- * limitations under the License.
1861
- */
1862
- Object.defineProperty(exports, "__esModule", { value: true });
1863
- exports.TraceAPI = void 0;
1864
-
1865
-
1866
- /**
1867
- * Singleton object which represents the entry point to the OpenTelemetry Tracing API
1868
- */
1869
- var TraceAPI = /** @class */ (function () {
1870
- /** Empty private constructor prevents end users from constructing a new instance of the API */
1871
- function TraceAPI() {
1872
- }
1873
- /** Get the singleton instance of the Trace API */
1874
- TraceAPI.getInstance = function () {
1875
- if (!this._instance) {
1876
- this._instance = new TraceAPI();
1877
- }
1878
- return this._instance;
1879
- };
1880
- /**
1881
- * Set the current global tracer. Returns the initialized global tracer provider
1882
- */
1883
- TraceAPI.prototype.setGlobalTracerProvider = function (provider) {
1884
- if (globalUtils._global[globalUtils.GLOBAL_TRACE_API_KEY]) {
1885
- // global tracer provider has already been set
1886
- return this.getTracerProvider();
1887
- }
1888
- globalUtils._global[globalUtils.GLOBAL_TRACE_API_KEY] = globalUtils.makeGetter(globalUtils.API_BACKWARDS_COMPATIBILITY_VERSION, provider, NoopTracerProvider_1.NOOP_TRACER_PROVIDER);
1889
- return this.getTracerProvider();
1890
- };
1891
- /**
1892
- * Returns the global tracer provider.
1893
- */
1894
- TraceAPI.prototype.getTracerProvider = function () {
1895
- var _a, _b;
1896
- return ((_b = (_a = globalUtils._global[globalUtils.GLOBAL_TRACE_API_KEY]) === null || _a === void 0 ? void 0 : _a.call(globalUtils._global, globalUtils.API_BACKWARDS_COMPATIBILITY_VERSION)) !== null && _b !== void 0 ? _b : NoopTracerProvider_1.NOOP_TRACER_PROVIDER);
1897
- };
1898
- /**
1899
- * Returns a tracer from the global tracer provider.
1900
- */
1901
- TraceAPI.prototype.getTracer = function (name, version) {
1902
- return this.getTracerProvider().getTracer(name, version);
1903
- };
1904
- /** Remove the global tracer provider */
1905
- TraceAPI.prototype.disable = function () {
1906
- delete globalUtils._global[globalUtils.GLOBAL_TRACE_API_KEY];
1907
- };
1908
- return TraceAPI;
1909
- }());
1910
- exports.TraceAPI = TraceAPI;
1911
-
1912
- });
1913
-
1914
- unwrapExports(trace);
1915
- var trace_1 = trace.TraceAPI;
1916
-
1917
- var metrics = createCommonjsModule(function (module, exports) {
1918
- /*
1919
- * Copyright The OpenTelemetry Authors
1920
- *
1921
- * Licensed under the Apache License, Version 2.0 (the "License");
1922
- * you may not use this file except in compliance with the License.
1923
- * You may obtain a copy of the License at
1924
- *
1925
- * https://www.apache.org/licenses/LICENSE-2.0
1926
- *
1927
- * Unless required by applicable law or agreed to in writing, software
1928
- * distributed under the License is distributed on an "AS IS" BASIS,
1929
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1930
- * See the License for the specific language governing permissions and
1931
- * limitations under the License.
1932
- */
1933
- Object.defineProperty(exports, "__esModule", { value: true });
1934
- exports.MetricsAPI = void 0;
1935
-
1936
-
1937
- /**
1938
- * Singleton object which represents the entry point to the OpenTelemetry Metrics API
1939
- */
1940
- var MetricsAPI = /** @class */ (function () {
1941
- /** Empty private constructor prevents end users from constructing a new instance of the API */
1942
- function MetricsAPI() {
1943
- }
1944
- /** Get the singleton instance of the Metrics API */
1945
- MetricsAPI.getInstance = function () {
1946
- if (!this._instance) {
1947
- this._instance = new MetricsAPI();
1948
- }
1949
- return this._instance;
1950
- };
1951
- /**
1952
- * Set the current global meter. Returns the initialized global meter provider.
1953
- */
1954
- MetricsAPI.prototype.setGlobalMeterProvider = function (provider) {
1955
- if (globalUtils._global[globalUtils.GLOBAL_METRICS_API_KEY]) {
1956
- // global meter provider has already been set
1957
- return this.getMeterProvider();
1958
- }
1959
- globalUtils._global[globalUtils.GLOBAL_METRICS_API_KEY] = globalUtils.makeGetter(globalUtils.API_BACKWARDS_COMPATIBILITY_VERSION, provider, NoopMeterProvider_1.NOOP_METER_PROVIDER);
1960
- return provider;
1961
- };
1962
- /**
1963
- * Returns the global meter provider.
1964
- */
1965
- MetricsAPI.prototype.getMeterProvider = function () {
1966
- var _a, _b;
1967
- return ((_b = (_a = globalUtils._global[globalUtils.GLOBAL_METRICS_API_KEY]) === null || _a === void 0 ? void 0 : _a.call(globalUtils._global, globalUtils.API_BACKWARDS_COMPATIBILITY_VERSION)) !== null && _b !== void 0 ? _b : NoopMeterProvider_1.NOOP_METER_PROVIDER);
1968
- };
1969
- /**
1970
- * Returns a meter from the global meter provider.
1971
- */
1972
- MetricsAPI.prototype.getMeter = function (name, version) {
1973
- return this.getMeterProvider().getMeter(name, version);
1974
- };
1975
- /** Remove the global meter provider */
1976
- MetricsAPI.prototype.disable = function () {
1977
- delete globalUtils._global[globalUtils.GLOBAL_METRICS_API_KEY];
1978
- };
1979
- return MetricsAPI;
1980
- }());
1981
- exports.MetricsAPI = MetricsAPI;
1982
-
1983
- });
1984
-
1985
- unwrapExports(metrics);
1986
- var metrics_1 = metrics.MetricsAPI;
1987
-
1988
- var propagation = createCommonjsModule(function (module, exports) {
1989
- /*
1990
- * Copyright The OpenTelemetry Authors
1991
- *
1992
- * Licensed under the Apache License, Version 2.0 (the "License");
1993
- * you may not use this file except in compliance with the License.
1994
- * You may obtain a copy of the License at
1995
- *
1996
- * https://www.apache.org/licenses/LICENSE-2.0
1997
- *
1998
- * Unless required by applicable law or agreed to in writing, software
1999
- * distributed under the License is distributed on an "AS IS" BASIS,
2000
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2001
- * See the License for the specific language governing permissions and
2002
- * limitations under the License.
2003
- */
2004
- Object.defineProperty(exports, "__esModule", { value: true });
2005
- exports.PropagationAPI = void 0;
2006
-
2007
-
2008
-
2009
-
2010
-
2011
- var contextApi = context$1.ContextAPI.getInstance();
2012
- /**
2013
- * Singleton object which represents the entry point to the OpenTelemetry Propagation API
2014
- */
2015
- var PropagationAPI = /** @class */ (function () {
2016
- /** Empty private constructor prevents end users from constructing a new instance of the API */
2017
- function PropagationAPI() {
2018
- }
2019
- /** Get the singleton instance of the Propagator API */
2020
- PropagationAPI.getInstance = function () {
2021
- if (!this._instance) {
2022
- this._instance = new PropagationAPI();
2023
- }
2024
- return this._instance;
2025
- };
2026
- /**
2027
- * Set the current propagator. Returns the initialized propagator
2028
- */
2029
- PropagationAPI.prototype.setGlobalPropagator = function (propagator) {
2030
- if (globalUtils._global[globalUtils.GLOBAL_PROPAGATION_API_KEY]) {
2031
- // global propagator has already been set
2032
- return this._getGlobalPropagator();
2033
- }
2034
- globalUtils._global[globalUtils.GLOBAL_PROPAGATION_API_KEY] = globalUtils.makeGetter(globalUtils.API_BACKWARDS_COMPATIBILITY_VERSION, propagator, NoopHttpTextPropagator_1.NOOP_HTTP_TEXT_PROPAGATOR);
2035
- return propagator;
2036
- };
2037
- /**
2038
- * Inject context into a carrier to be propagated inter-process
2039
- *
2040
- * @param carrier carrier to inject context into
2041
- * @param setter Function used to set values on the carrier
2042
- * @param context Context carrying tracing data to inject. Defaults to the currently active context.
2043
- */
2044
- PropagationAPI.prototype.inject = function (carrier, setter$1, context) {
2045
- if (setter$1 === void 0) { setter$1 = setter.defaultSetter; }
2046
- if (context === void 0) { context = contextApi.active(); }
2047
- return this._getGlobalPropagator().inject(context, carrier, setter$1);
2048
- };
2049
- /**
2050
- * Extract context from a carrier
2051
- *
2052
- * @param carrier Carrier to extract context from
2053
- * @param getter Function used to extract keys from a carrier
2054
- * @param context Context which the newly created context will inherit from. Defaults to the currently active context.
2055
- */
2056
- PropagationAPI.prototype.extract = function (carrier, getter$1, context) {
2057
- if (getter$1 === void 0) { getter$1 = getter.defaultGetter; }
2058
- if (context === void 0) { context = contextApi.active(); }
2059
- return this._getGlobalPropagator().extract(context, carrier, getter$1);
2060
- };
2061
- /** Remove the global propagator */
2062
- PropagationAPI.prototype.disable = function () {
2063
- delete globalUtils._global[globalUtils.GLOBAL_PROPAGATION_API_KEY];
2064
- };
2065
- PropagationAPI.prototype._getGlobalPropagator = function () {
2066
- var _a, _b;
2067
- return ((_b = (_a = globalUtils._global[globalUtils.GLOBAL_PROPAGATION_API_KEY]) === null || _a === void 0 ? void 0 : _a.call(globalUtils._global, globalUtils.API_BACKWARDS_COMPATIBILITY_VERSION)) !== null && _b !== void 0 ? _b : NoopHttpTextPropagator_1.NOOP_HTTP_TEXT_PROPAGATOR);
2068
- };
2069
- return PropagationAPI;
2070
- }());
2071
- exports.PropagationAPI = PropagationAPI;
2072
-
2073
- });
2074
-
2075
- unwrapExports(propagation);
2076
- var propagation_1 = propagation.PropagationAPI;
2077
-
2078
- var src$1 = createCommonjsModule(function (module, exports) {
2079
- /*
2080
- * Copyright The OpenTelemetry Authors
2081
- *
2082
- * Licensed under the Apache License, Version 2.0 (the "License");
2083
- * you may not use this file except in compliance with the License.
2084
- * You may obtain a copy of the License at
2085
- *
2086
- * https://www.apache.org/licenses/LICENSE-2.0
2087
- *
2088
- * Unless required by applicable law or agreed to in writing, software
2089
- * distributed under the License is distributed on an "AS IS" BASIS,
2090
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2091
- * See the License for the specific language governing permissions and
2092
- * limitations under the License.
2093
- */
2094
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2095
- if (k2 === undefined) k2 = k;
2096
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2097
- }) : (function(o, m, k, k2) {
2098
- if (k2 === undefined) k2 = k;
2099
- o[k2] = m[k];
2100
- }));
2101
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2102
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
2103
- };
2104
- Object.defineProperty(exports, "__esModule", { value: true });
2105
- exports.propagation = exports.metrics = exports.trace = exports.context = void 0;
2106
- __exportStar(Logger, exports);
2107
- __exportStar(Time, exports);
2108
- __exportStar(getter, exports);
2109
- __exportStar(HttpTextPropagator, exports);
2110
- __exportStar(NoopHttpTextPropagator_1, exports);
2111
- __exportStar(setter, exports);
2112
- __exportStar(CorrelationContext, exports);
2113
- __exportStar(EntryValue, exports);
2114
- __exportStar(BatchObserverResult, exports);
2115
- __exportStar(BoundInstrument, exports);
2116
- __exportStar(Meter, exports);
2117
- __exportStar(MeterProvider, exports);
2118
- __exportStar(Metric, exports);
2119
- __exportStar(NoopMeter_1, exports);
2120
- __exportStar(NoopMeterProvider_1, exports);
2121
- __exportStar(Observation, exports);
2122
- __exportStar(ObserverResult, exports);
2123
- __exportStar(attributes, exports);
2124
- __exportStar(Event, exports);
2125
- __exportStar(Plugin, exports);
2126
- __exportStar(link_context, exports);
2127
- __exportStar(link, exports);
2128
- __exportStar(NoopSpan_1, exports);
2129
- __exportStar(NoopTracer_1, exports);
2130
- __exportStar(NoopTracerProvider_1, exports);
2131
- __exportStar(Sampler, exports);
2132
- __exportStar(SamplingResult, exports);
2133
- __exportStar(span_context, exports);
2134
- __exportStar(span_kind, exports);
2135
- __exportStar(span, exports);
2136
- __exportStar(SpanOptions, exports);
2137
- __exportStar(status, exports);
2138
- __exportStar(TimedEvent, exports);
2139
- __exportStar(trace_flags, exports);
2140
- __exportStar(trace_state, exports);
2141
- __exportStar(tracer_provider, exports);
2142
- __exportStar(tracer, exports);
2143
-
2144
- Object.defineProperty(exports, "Context", { enumerable: true, get: function () { return src.Context; } });
2145
-
2146
- /** Entrypoint for context API */
2147
- exports.context = context$1.ContextAPI.getInstance();
2148
-
2149
- /** Entrypoint for trace API */
2150
- exports.trace = trace.TraceAPI.getInstance();
2151
-
2152
- /** Entrypoint for metrics API */
2153
- exports.metrics = metrics.MetricsAPI.getInstance();
2154
-
2155
- /** Entrypoint for propagation API */
2156
- exports.propagation = propagation.PropagationAPI.getInstance();
2157
- exports.default = {
2158
- trace: exports.trace,
2159
- metrics: exports.metrics,
2160
- context: exports.context,
2161
- propagation: exports.propagation,
2162
- };
2163
-
2164
- });
2165
-
2166
- unwrapExports(src$1);
2167
- var src_1 = src$1.CanonicalCode;
2168
- var src_2 = src$1.SpanKind;
2169
- var src_3 = src$1.TraceFlags;
2170
- var src_4 = src$1.propagation;
2171
- var src_5 = src$1.metrics;
2172
- var src_6 = src$1.trace;
2173
- var src_7 = src$1.context;
2174
-
2175
- // Copyright (c) Microsoft Corporation.
2176
- var createSpan = coreHttp.createSpanFunction({
2177
- namespace: "Azure.Synapse.Monitoring",
2178
- packagePrefix: "Microsoft.Synapse"
2179
- });
2180
-
2181
- var SparkJobListViewResponse = {
2182
- type: {
2183
- name: "Composite",
2184
- className: "SparkJobListViewResponse",
2185
- modelProperties: {
2186
- nJobs: {
2187
- serializedName: "nJobs",
2188
- type: {
2189
- name: "Number"
2190
- }
2191
- },
2192
- sparkJobs: {
2193
- serializedName: "sparkJobs",
2194
- type: {
2195
- name: "Sequence",
2196
- element: {
2197
- type: {
2198
- name: "Composite",
2199
- className: "SparkJob"
2200
- }
2201
- }
2202
- }
2203
- }
2204
- }
2205
- }
2206
- };
2207
- var SparkJob = {
2208
- type: {
2209
- name: "Composite",
2210
- className: "SparkJob",
2211
- modelProperties: {
2212
- state: {
2213
- serializedName: "state",
2214
- type: {
2215
- name: "String"
2216
- }
2217
- },
2218
- name: {
2219
- serializedName: "name",
2220
- type: {
2221
- name: "String"
2222
- }
2223
- },
2224
- submitter: {
2225
- serializedName: "submitter",
2226
- type: {
2227
- name: "String"
2228
- }
2229
- },
2230
- compute: {
2231
- serializedName: "compute",
2232
- type: {
2233
- name: "String"
2234
- }
2235
- },
2236
- sparkApplicationId: {
2237
- serializedName: "sparkApplicationId",
2238
- type: {
2239
- name: "String"
2240
- }
2241
- },
2242
- livyId: {
2243
- serializedName: "livyId",
2244
- type: {
2245
- name: "String"
2246
- }
2247
- },
2248
- timing: {
2249
- serializedName: "timing",
2250
- type: {
2251
- name: "Sequence",
2252
- element: {
2253
- type: {
2254
- name: "String"
2255
- }
2256
- }
2257
- }
2258
- },
2259
- sparkJobDefinition: {
2260
- serializedName: "sparkJobDefinition",
2261
- nullable: true,
2262
- type: {
2263
- name: "String"
2264
- }
2265
- },
2266
- pipeline: {
2267
- serializedName: "pipeline",
2268
- nullable: true,
2269
- type: {
2270
- name: "Sequence",
2271
- element: {
2272
- type: {
2273
- name: "Composite",
2274
- className: "SparkJob"
2275
- }
2276
- }
2277
- }
2278
- },
2279
- jobType: {
2280
- serializedName: "jobType",
2281
- type: {
2282
- name: "String"
2283
- }
2284
- },
2285
- submitTime: {
2286
- serializedName: "submitTime",
2287
- type: {
2288
- name: "DateTime"
2289
- }
2290
- },
2291
- endTime: {
2292
- serializedName: "endTime",
2293
- type: {
2294
- name: "DateTime"
2295
- }
2296
- },
2297
- queuedDuration: {
2298
- serializedName: "queuedDuration",
2299
- type: {
2300
- name: "String"
2301
- }
2302
- },
2303
- runningDuration: {
2304
- serializedName: "runningDuration",
2305
- type: {
2306
- name: "String"
2307
- }
2308
- },
2309
- totalDuration: {
2310
- serializedName: "totalDuration",
2311
- type: {
2312
- name: "String"
2313
- }
2314
- }
2315
- }
2316
- }
2317
- };
2318
- var SqlQueryStringDataModel = {
2319
- type: {
2320
- name: "Composite",
2321
- className: "SqlQueryStringDataModel",
2322
- modelProperties: {
2323
- query: {
2324
- serializedName: "query",
2325
- type: {
2326
- name: "String"
2327
- }
2328
- }
2329
- }
2330
- }
2331
- };
2332
-
2333
- var Mappers = /*#__PURE__*/Object.freeze({
2334
- __proto__: null,
2335
- SparkJobListViewResponse: SparkJobListViewResponse,
2336
- SparkJob: SparkJob,
2337
- SqlQueryStringDataModel: SqlQueryStringDataModel
2338
- });
2339
-
2340
- var accept = {
2341
- parameterPath: "accept",
2342
- mapper: {
2343
- defaultValue: "application/json",
2344
- isConstant: true,
2345
- serializedName: "Accept",
2346
- type: {
2347
- name: "String"
2348
- }
2349
- }
2350
- };
2351
- var endpoint = {
2352
- parameterPath: "endpoint",
2353
- mapper: {
2354
- serializedName: "endpoint",
2355
- required: true,
2356
- type: {
2357
- name: "String"
2358
- }
2359
- },
2360
- skipEncoding: true
2361
- };
2362
- var xMsClientRequestId = {
2363
- parameterPath: ["options", "xMsClientRequestId"],
2364
- mapper: {
2365
- serializedName: "x-ms-client-request-id",
2366
- type: {
2367
- name: "String"
2368
- }
2369
- }
2370
- };
2371
- var apiVersion = {
2372
- parameterPath: "apiVersion",
2373
- mapper: {
2374
- defaultValue: "2019-11-01-preview",
2375
- isConstant: true,
2376
- serializedName: "api-version",
2377
- type: {
2378
- name: "String"
2379
- }
2380
- }
2381
- };
2382
- var filter = {
2383
- parameterPath: ["options", "filter"],
2384
- mapper: {
2385
- serializedName: "filter",
2386
- type: {
2387
- name: "String"
2388
- }
2389
- }
2390
- };
2391
- var orderby = {
2392
- parameterPath: ["options", "orderby"],
2393
- mapper: {
2394
- serializedName: "$orderby",
2395
- type: {
2396
- name: "String"
2397
- }
2398
- }
2399
- };
2400
- var skip = {
2401
- parameterPath: ["options", "skip"],
2402
- mapper: {
2403
- serializedName: "skip",
2404
- type: {
2405
- name: "String"
2406
- }
2407
- }
2408
- };
2409
-
2410
- /**
2411
- * Class representing a Monitoring.
2412
- */
2413
- var Monitoring = /** @class */ (function () {
2414
- /**
2415
- * Initialize a new instance of the class Monitoring class.
2416
- * @param client Reference to the service client
2417
- */
2418
- function Monitoring(client) {
2419
- this.client = client;
2420
- }
2421
- /**
2422
- * Get list of spark applications for the workspace.
2423
- * @param options The options parameters.
2424
- */
2425
- Monitoring.prototype.getSparkJobList = function (options) {
2426
- return __awaiter(this, void 0, void 0, function () {
2427
- var _a, span, updatedOptions, operationArguments, result, error_1;
2428
- return __generator(this, function (_b) {
2429
- switch (_b.label) {
2430
- case 0:
2431
- _a = createSpan("MonitoringClient-getSparkJobList", coreHttp.operationOptionsToRequestOptionsBase(options || {})), span = _a.span, updatedOptions = _a.updatedOptions;
2432
- operationArguments = {
2433
- options: updatedOptions
2434
- };
2435
- _b.label = 1;
2436
- case 1:
2437
- _b.trys.push([1, 3, 4, 5]);
2438
- return [4 /*yield*/, this.client.sendOperationRequest(operationArguments, getSparkJobListOperationSpec)];
2439
- case 2:
2440
- result = _b.sent();
2441
- return [2 /*return*/, result];
2442
- case 3:
2443
- error_1 = _b.sent();
2444
- span.setStatus({
2445
- code: src_1.UNKNOWN,
2446
- message: error_1.message
2447
- });
2448
- throw error_1;
2449
- case 4:
2450
- span.end();
2451
- return [7 /*endfinally*/];
2452
- case 5: return [2 /*return*/];
2453
- }
2454
- });
2455
- });
2456
- };
2457
- /**
2458
- * Get SQL OD/DW Query for the workspace.
2459
- * @param options The options parameters.
2460
- */
2461
- Monitoring.prototype.getSqlJobQueryString = function (options) {
2462
- return __awaiter(this, void 0, void 0, function () {
2463
- var _a, span, updatedOptions, operationArguments, result, error_2;
2464
- return __generator(this, function (_b) {
2465
- switch (_b.label) {
2466
- case 0:
2467
- _a = createSpan("MonitoringClient-getSqlJobQueryString", coreHttp.operationOptionsToRequestOptionsBase(options || {})), span = _a.span, updatedOptions = _a.updatedOptions;
2468
- operationArguments = {
2469
- options: updatedOptions
2470
- };
2471
- _b.label = 1;
2472
- case 1:
2473
- _b.trys.push([1, 3, 4, 5]);
2474
- return [4 /*yield*/, this.client.sendOperationRequest(operationArguments, getSqlJobQueryStringOperationSpec)];
2475
- case 2:
2476
- result = _b.sent();
2477
- return [2 /*return*/, result];
2478
- case 3:
2479
- error_2 = _b.sent();
2480
- span.setStatus({
2481
- code: src_1.UNKNOWN,
2482
- message: error_2.message
2483
- });
2484
- throw error_2;
2485
- case 4:
2486
- span.end();
2487
- return [7 /*endfinally*/];
2488
- case 5: return [2 /*return*/];
2489
- }
2490
- });
2491
- });
2492
- };
2493
- return Monitoring;
2494
- }());
2495
- // Operation Specifications
2496
- var serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);
2497
- var getSparkJobListOperationSpec = {
2498
- path: "/monitoring/workloadTypes/spark/Applications",
2499
- httpMethod: "GET",
2500
- responses: {
2501
- 200: {
2502
- bodyMapper: SparkJobListViewResponse
2503
- }
2504
- },
2505
- queryParameters: [apiVersion],
2506
- urlParameters: [endpoint],
2507
- headerParameters: [accept, xMsClientRequestId],
2508
- serializer: serializer
2509
- };
2510
- var getSqlJobQueryStringOperationSpec = {
2511
- path: "/monitoring/workloadTypes/sql/querystring",
2512
- httpMethod: "GET",
2513
- responses: {
2514
- 200: {
2515
- bodyMapper: SqlQueryStringDataModel
2516
- }
2517
- },
2518
- queryParameters: [apiVersion, filter, orderby, skip],
2519
- urlParameters: [endpoint],
2520
- headerParameters: [accept, xMsClientRequestId],
2521
- serializer: serializer
2522
- };
2523
-
2524
- var packageName = "@azure/synapse-monitoring";
2525
- var packageVersion = "1.0.0-beta.1";
2526
- var MonitoringClientContext = /** @class */ (function (_super) {
2527
- __extends(MonitoringClientContext, _super);
2528
- /**
2529
- * Initializes a new instance of the MonitoringClientContext class.
2530
- * @param credentials Subscription credentials which uniquely identify client subscription.
2531
- * @param endpoint The workspace development endpoint, for example
2532
- * https://myworkspace.dev.azuresynapse.net.
2533
- * @param options The parameter options
2534
- */
2535
- function MonitoringClientContext(credentials, endpoint, options) {
2536
- var _this = this;
2537
- if (credentials === undefined) {
2538
- throw new Error("'credentials' cannot be null");
2539
- }
2540
- if (endpoint === undefined) {
2541
- throw new Error("'endpoint' cannot be null");
2542
- }
2543
- // Initializing default values for options
2544
- if (!options) {
2545
- options = {};
2546
- }
2547
- if (!options.userAgent) {
2548
- var defaultUserAgent = coreHttp.getDefaultUserAgentValue();
2549
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
2550
- }
2551
- if (!options.credentialScopes) {
2552
- options.credentialScopes = ["https://dev.azuresynapse.net/.default"];
2553
- }
2554
- _this = _super.call(this, credentials, options) || this;
2555
- _this.requestContentType = "application/json; charset=utf-8";
2556
- _this.baseUri = options.endpoint || "{endpoint}";
2557
- // Parameter assignments
2558
- _this.endpoint = endpoint;
2559
- // Assigning values to Constant parameters
2560
- _this.apiVersion = options.apiVersion || "2019-11-01-preview";
2561
- return _this;
2562
- }
2563
- return MonitoringClientContext;
2564
- }(coreHttp.ServiceClient));
2565
-
2566
- var MonitoringClient = /** @class */ (function (_super) {
2567
- __extends(MonitoringClient, _super);
2568
- /**
2569
- * Initializes a new instance of the MonitoringClient class.
2570
- * @param credentials Subscription credentials which uniquely identify client subscription.
2571
- * @param endpoint The workspace development endpoint, for example
2572
- * https://myworkspace.dev.azuresynapse.net.
2573
- * @param options The parameter options
2574
- */
2575
- function MonitoringClient(credentials, endpoint, options) {
2576
- var _this = _super.call(this, credentials, endpoint, options) || this;
2577
- _this.monitoring = new Monitoring(_this);
2578
- return _this;
2579
- }
2580
- return MonitoringClient;
2581
- }(MonitoringClientContext));
2582
-
2583
- exports.MonitoringClient = MonitoringClient;
2584
- //# sourceMappingURL=index.js.map