@temporalio/interceptors-opentelemetry 0.23.0 → 1.0.0-rc.0
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/README.md +2 -2
- package/lib/workflow/index.d.ts +1 -1
- package/lib/workflow/index.js +4 -4
- package/lib/workflow/index.js.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@temporalio/interceptors-opentelemetry)
|
|
4
4
|
|
|
5
|
-
[Temporal](https://temporal.io)'s [TypeScript SDK](https://docs.temporal.io/
|
|
5
|
+
[Temporal](https://temporal.io)'s [TypeScript SDK](https://docs.temporal.io/typescript/introduction) interceptors bundle for tracing Workflow and Activity executions with [OpenTelemetry](https://opentelemetry.io/).
|
|
6
6
|
|
|
7
|
-
- [Interceptors docs](https://docs.temporal.io/
|
|
7
|
+
- [Interceptors docs](https://docs.temporal.io/typescript/interceptors)
|
|
8
8
|
- [OpenTelemetry sample project](https://github.com/temporalio/samples-typescript/tree/main/interceptors-opentelemetry)
|
package/lib/workflow/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './runtime';
|
|
2
2
|
import * as otel from '@opentelemetry/api';
|
|
3
|
-
import { ActivityInput, DisposeInput, Next, StartChildWorkflowExecutionInput,
|
|
3
|
+
import { ActivityInput, ContinueAsNewInput, DisposeInput, Next, StartChildWorkflowExecutionInput, WorkflowExecuteInput, WorkflowInboundCallsInterceptor, WorkflowInternalsInterceptor, WorkflowOutboundCallsInterceptor } from '@temporalio/workflow';
|
|
4
4
|
export * from './definitions';
|
|
5
5
|
/**
|
|
6
6
|
* Intercepts calls to run a Workflow
|
package/lib/workflow/index.js
CHANGED
|
@@ -28,13 +28,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.OpenTelemetryInternalsInterceptor = exports.OpenTelemetryOutboundInterceptor = exports.OpenTelemetryInboundInterceptor = void 0;
|
|
30
30
|
require("./runtime"); // Patch the Workflow isolate runtime for opentelemetry
|
|
31
|
-
const
|
|
31
|
+
const tracing = __importStar(require("@opentelemetry/sdk-trace-base"));
|
|
32
32
|
const otel_1 = require("@temporalio/internal-non-workflow-common/lib/otel");
|
|
33
|
+
const workflow_1 = require("@temporalio/workflow");
|
|
34
|
+
const instrumentation_1 = require("../instrumentation");
|
|
33
35
|
const context_manager_1 = require("./context-manager");
|
|
34
|
-
const span_exporter_1 = require("./span-exporter");
|
|
35
36
|
const definitions_1 = require("./definitions");
|
|
36
|
-
const
|
|
37
|
-
const instrumentation_1 = require("../instrumentation");
|
|
37
|
+
const span_exporter_1 = require("./span-exporter");
|
|
38
38
|
__exportStar(require("./definitions"), exports);
|
|
39
39
|
let tracer = undefined;
|
|
40
40
|
let contextManager = undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAmB,CAAC,uDAAuD;AAE3E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAmB,CAAC,uDAAuD;AAE3E,uEAAyD;AACzD,4EAAkH;AAClH,mDAY8B;AAC9B,wDAAgD;AAChD,uDAAmD;AACnD,+CAAyD;AACzD,mDAA+C;AAE/C,gDAA8B;AAE9B,IAAI,MAAM,GAA4B,SAAS,CAAC;AAChD,IAAI,cAAc,GAA+B,SAAS,CAAC;AAE3D,SAAS,SAAS;IAChB,IAAI,cAAc,KAAK,SAAS,EAAE;QAChC,cAAc,GAAG,IAAI,gCAAc,EAAE,CAAC;KACvC;IACD,IAAI,MAAM,KAAK,SAAS,EAAE;QACxB,MAAM,Q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CAAiC;IAC5C,KAAK,CAAC,OAAO,CAAC,KAAmB,EAAE,IAAmD;QACpF,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,cAAc,CAAC,OAAO,EAAE,CAAC;SAC1B;QACD,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;CACF;AAPD,8EAOC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temporalio/interceptors-opentelemetry",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-rc.0",
|
|
4
4
|
"description": "Temporal.io SDK interceptors bundle for tracing with opentelemetry",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"@opentelemetry/core": "^1.0.0",
|
|
19
19
|
"@opentelemetry/resources": "^1.0.0",
|
|
20
20
|
"@opentelemetry/sdk-trace-base": "^1.0.0",
|
|
21
|
-
"@temporalio/client": "^0.
|
|
22
|
-
"@temporalio/common": "^0.
|
|
23
|
-
"@temporalio/worker": "^0.
|
|
24
|
-
"@temporalio/workflow": "^0.
|
|
21
|
+
"@temporalio/client": "^1.0.0-rc.0",
|
|
22
|
+
"@temporalio/common": "^1.0.0-rc.0",
|
|
23
|
+
"@temporalio/worker": "^1.0.0-rc.0",
|
|
24
|
+
"@temporalio/workflow": "^1.0.0-rc.0"
|
|
25
25
|
},
|
|
26
26
|
"bugs": {
|
|
27
27
|
"url": "https://github.com/temporalio/sdk-typescript/issues"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "c25e91309b980f2118df4048d760306982019871"
|
|
37
37
|
}
|