@glasstrace/sdk 1.9.0 → 1.9.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.
@@ -14928,10 +14928,15 @@ function withAsyncCausality(options, fn) {
14928
14928
  })();
14929
14929
  return async () => {
14930
14930
  const tracer = trace.getTracer(TRACER_NAME);
14931
- const span = tracer.startSpan(options.name, {
14932
- root: true,
14933
- links: capturedContext !== void 0 ? [{ context: capturedContext }] : void 0
14934
- });
14931
+ let span;
14932
+ try {
14933
+ span = tracer.startSpan(options.name, {
14934
+ root: true,
14935
+ links: capturedContext !== void 0 ? [{ context: capturedContext }] : void 0
14936
+ });
14937
+ } catch {
14938
+ return Promise.resolve(fn());
14939
+ }
14935
14940
  if (isNoopSpan(span)) {
14936
14941
  if (!_skippedUninstalledEmitted) {
14937
14942
  _skippedUninstalledEmitted = true;