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