@azure/synapse-monitoring 1.0.0-alpha.20230626.1 → 1.0.0-alpha.20230718.1

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.
package/dist/index.js CHANGED
@@ -88,6 +88,11 @@ function __awaiter$2(thisArg, _arguments, P, generator) {
88
88
  });
89
89
  }
90
90
 
91
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
92
+ var e = new Error(message);
93
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
94
+ };
95
+
91
96
  // Copyright (c) Microsoft Corporation.
92
97
  /**
93
98
  * Encodes a byte array in base64 format.
@@ -17250,6 +17255,7 @@ function tryProcessResponse(span, response) {
17250
17255
  * @param options - Options to configure a custom pipeline.
17251
17256
  */
17252
17257
  function createPipelineFromOptions(options) {
17258
+ var _a;
17253
17259
  const pipeline = createEmptyPipeline();
17254
17260
  if (isNode) {
17255
17261
  if (options.tlsOptions) {
@@ -17260,7 +17266,7 @@ function createPipelineFromOptions(options) {
17260
17266
  }
17261
17267
  pipeline.addPolicy(formDataPolicy());
17262
17268
  pipeline.addPolicy(userAgentPolicy(options.userAgentOptions));
17263
- pipeline.addPolicy(setClientRequestIdPolicy());
17269
+ pipeline.addPolicy(setClientRequestIdPolicy((_a = options.telemetryOptions) === null || _a === void 0 ? void 0 : _a.clientRequestIdHeaderName));
17264
17270
  pipeline.addPolicy(defaultRetryPolicy(options.retryOptions), { phase: "Retry" });
17265
17271
  pipeline.addPolicy(tracingPolicy(options.userAgentOptions), { afterPhase: "Retry" });
17266
17272
  if (isNode) {