@nsshunt/stsobservability 1.0.49 → 1.0.51

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.
@@ -4736,9 +4736,8 @@ const _PublishInstrumentController = class _PublishInstrumentController extends
4736
4736
  });
4737
4737
  });
4738
4738
  this.SetupInstrumentation();
4739
- if (this.options.useWorker === true) {
4740
- const fileName = "./dist/publish/publishInstrumentsWebWorker.js";
4741
- __privateSet(this, _worker, new Worker(fileName));
4739
+ if (this.options.worker !== void 0) {
4740
+ __privateSet(this, _worker, this.options.worker);
4742
4741
  __privateSet(this, _wwClient, new WebWorkerMessageHandler({
4743
4742
  logger: defaultLogger,
4744
4743
  role: "CLIENT",
@@ -4760,6 +4759,7 @@ const _PublishInstrumentController = class _PublishInstrumentController extends
4760
4759
  publishInterval: options.publishInterval,
4761
4760
  publishTransportBaseOptions: options.publishTransportBaseOptions
4762
4761
  };
4762
+ publishInstrumentsOptions.publishTransportBaseOptions.agentOptions = void 0;
4763
4763
  setTimeout(async () => {
4764
4764
  var _a2;
4765
4765
  await ((_a2 = __privateGet(this, _wwClient)) == null ? void 0 : _a2.emitex("options", publishInstrumentsOptions));