@rayondigital/nest-dapr 0.9.61 → 0.9.62

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.
@@ -15,6 +15,9 @@ const nestjs_cls_1 = require("nestjs-cls");
15
15
  const dapr_context_service_1 = require("../dapr-context-service");
16
16
  function withTracedContext(contextService, operationName, operation, spanKind = api_1.SpanKind.INTERNAL, spanAttributes = undefined, tracerName = 'nest-dapr') {
17
17
  return __awaiter(this, void 0, void 0, function* () {
18
+ if (!api_1.trace || !api_1.context) {
19
+ return yield operation();
20
+ }
18
21
  const tracer = api_1.trace.getTracer(tracerName);
19
22
  const activeContext = api_1.context.active();
20
23
  if (!activeContext) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rayondigital/nest-dapr",
3
- "version": "0.9.61",
3
+ "version": "0.9.62",
4
4
  "description": "Develop NestJs microservices using Dapr pubsub, actors and other bindings",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",