@temporalio/interceptors-opentelemetry 1.0.0-rc.1 → 1.0.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/LICENSE.md CHANGED
@@ -2,7 +2,7 @@ Temporal TypeScript SDK
2
2
 
3
3
  MIT License
4
4
 
5
- Copyright (c) 2021 Temporal Technologies, Inc. All Rights Reserved
5
+ Copyright (c) 2021 Temporal Technologies Inc. All Rights Reserved
6
6
 
7
7
  Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![NPM](https://img.shields.io/npm/v/@temporalio/interceptors-opentelemetry?style=for-the-badge)](https://www.npmjs.com/package/@temporalio/interceptors-opentelemetry)
4
4
 
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/).
5
+ [Temporal](https://temporal.io)'s [TypeScript SDK](https://docs.temporal.io/typescript/introduction) interceptors for tracing Workflow and Activity executions with [OpenTelemetry](https://opentelemetry.io/).
6
6
 
7
7
  - [Interceptors docs](https://docs.temporal.io/typescript/interceptors)
8
- - [OpenTelemetry sample project](https://github.com/temporalio/samples-typescript/tree/main/interceptors-opentelemetry)
8
+ - [OpenTelemetry interceptors docs](https://docs.temporal.io/typescript/logging/#opentelemetry-tracing)
package/lib/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `npm i @temporalio/interceptors-opentelemetry`
3
+ *
4
+ * Interceptors that add OpenTelemetry tracing.
5
+ *
6
+ * [Documentation](https://docs.temporal.io/typescript/logging#opentelemetry-tracing)
7
+ *
8
+ * @module
9
+ */
10
+ export * from './workflow';
11
+ export * from './worker';
12
+ export { OpenTelemetryWorkflowClientCallsInterceptor } from './client';
package/lib/index.js ADDED
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * `npm i @temporalio/interceptors-opentelemetry`
4
+ *
5
+ * Interceptors that add OpenTelemetry tracing.
6
+ *
7
+ * [Documentation](https://docs.temporal.io/typescript/logging#opentelemetry-tracing)
8
+ *
9
+ * @module
10
+ */
11
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ var desc = Object.getOwnPropertyDescriptor(m, k);
14
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
15
+ desc = { enumerable: true, get: function() { return m[k]; } };
16
+ }
17
+ Object.defineProperty(o, k2, desc);
18
+ }) : (function(o, m, k, k2) {
19
+ if (k2 === undefined) k2 = k;
20
+ o[k2] = m[k];
21
+ }));
22
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
23
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.OpenTelemetryWorkflowClientCallsInterceptor = void 0;
27
+ __exportStar(require("./workflow"), exports);
28
+ __exportStar(require("./worker"), exports);
29
+ var client_1 = require("./client");
30
+ Object.defineProperty(exports, "OpenTelemetryWorkflowClientCallsInterceptor", { enumerable: true, get: function () { return client_1.OpenTelemetryWorkflowClientCallsInterceptor; } });
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;;;;;;;;;;;;;;;AAEH,6CAA2B;AAC3B,2CAAyB;AACzB,mCAAuE;AAA9D,qIAAA,2CAA2C,OAAA"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@temporalio/interceptors-opentelemetry",
3
- "version": "1.0.0-rc.1",
3
+ "version": "1.0.0",
4
4
  "description": "Temporal.io SDK interceptors bundle for tracing with opentelemetry",
5
- "main": "lib/workflow/index.js",
6
- "types": "./lib/workflow/index.d.ts",
5
+ "main": "lib/index.js",
6
+ "types": "./lib/index.d.ts",
7
7
  "scripts": {},
8
8
  "keywords": [
9
9
  "temporal",
@@ -11,17 +11,17 @@
11
11
  "interceptors",
12
12
  "opentelemetry"
13
13
  ],
14
- "author": "Roey Berman <roey@temporal.io>",
14
+ "author": "Temporal Technologies Inc. <sdk@temporal.io>",
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@opentelemetry/api": "^1.1.0",
18
18
  "@opentelemetry/core": "^1.3.1",
19
19
  "@opentelemetry/resources": "^1.3.1",
20
20
  "@opentelemetry/sdk-trace-base": "^1.3.1",
21
- "@temporalio/client": "^1.0.0-rc.1",
22
- "@temporalio/common": "^1.0.0-rc.1",
23
- "@temporalio/worker": "^1.0.0-rc.1",
24
- "@temporalio/workflow": "^1.0.0-rc.1"
21
+ "@temporalio/client": "^1.0.0",
22
+ "@temporalio/common": "^1.0.0",
23
+ "@temporalio/worker": "^1.0.0",
24
+ "@temporalio/workflow": "^1.0.0"
25
25
  },
26
26
  "bugs": {
27
27
  "url": "https://github.com/temporalio/sdk-typescript/issues"
@@ -34,5 +34,5 @@
34
34
  "src",
35
35
  "lib"
36
36
  ],
37
- "gitHead": "723de0fbc7a04e68084ec99453578e7027eb3803"
37
+ "gitHead": "c4fc4dc608bf58701c11b6ae02d1d63b4457718d"
38
38
  }
package/src/index.ts ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * `npm i @temporalio/interceptors-opentelemetry`
3
+ *
4
+ * Interceptors that add OpenTelemetry tracing.
5
+ *
6
+ * [Documentation](https://docs.temporal.io/typescript/logging#opentelemetry-tracing)
7
+ *
8
+ * @module
9
+ */
10
+
11
+ export * from './workflow';
12
+ export * from './worker';
13
+ export { OpenTelemetryWorkflowClientCallsInterceptor } from './client';