@lark-apaas/observable-web 1.0.1-alpha.0 → 1.0.1-alpha.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1411,12 +1411,11 @@ var _WebObservableSdk = class _WebObservableSdk {
1411
1411
  counter.add(value, attributes);
1412
1412
  }
1413
1413
  startSpan(name, options, spanContext) {
1414
- var _a;
1415
- const ctx = spanContext || context.active();
1416
1414
  if (!this.tracer) {
1417
1415
  return _WebObservableSdk.EmptySpan;
1418
1416
  }
1419
- return (_a = this.tracer) == null ? void 0 : _a.startSpan(name, options, ctx);
1417
+ const ctx = spanContext || context.active();
1418
+ return this.tracer.startSpan(name, options, ctx);
1420
1419
  }
1421
1420
  // --- 公开 API: 链路追踪 (Trace) ---
1422
1421
  trace(name, fn, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/observable-web",
3
- "version": "1.0.1-alpha.0",
3
+ "version": "1.0.1-alpha.1",
4
4
  "description": "Observable SDK For Web",
5
5
  "main": "./dist/index.js",
6
6
  "files": [