@opentelemetry/exporter-metrics-otlp-grpc 0.40.0 → 0.41.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 CHANGED
@@ -5,8 +5,7 @@
5
5
 
6
6
  **Note: This is an experimental package under active development. New releases may include breaking changes.**
7
7
 
8
- This module provides exporter for node to be used with OTLP (`grpc`) compatible receivers.
9
- Compatible with [opentelemetry-collector][opentelemetry-collector-url] versions `>=0.16 <=0.53`.
8
+ This module provides a metrics-exporter for OTLP (gRPC) using protocol version `v0.20.0`.
10
9
 
11
10
  ## Installation
12
11
 
@@ -32,6 +31,7 @@ const { MeterProvider, PeriodicExportingMetricReader } = require('@opentelemetry
32
31
  const { OTLPMetricExporter } = require('@opentelemetry/exporter-metrics-otlp-grpc');
33
32
  const collectorOptions = {
34
33
  // url is optional and can be omitted - default is http://localhost:4317
34
+ // Unix domain sockets are also supported: 'unix:///path/to/socket.sock'
35
35
  url: 'http://<collector-hostname>:<port>',
36
36
  };
37
37
 
@@ -70,7 +70,7 @@ In addition to settings passed to the constructor, the exporter also supports co
70
70
  | OTEL_EXPORTER_OTLP_CLIENT_KEY | The path to the file containing private client key to use when verifying an OTLP trace, metric or log client's TLS credentials. Must provide a client certificate/chain when providing a private client key. By default no client key file is used. |
71
71
  | OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE | The path to the file containing trusted client certificate/chain for clients private key to use when verifying an OTLP metric server's TLS credentials. Must provide a private client key when providing a certificate/chain. By default no chain file is used. |
72
72
  | OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE | The path to the file containing trusted client certificate/chain for clients private key to use when verifying an OTLP trace, metric and log server's TLS credentials. Must provide a private client key when providing a certificate/chain. By default no chain file is used. |
73
- | OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE | The exporters aggregation temporality preference. Valid values are `cumulative`, and `delta`. `cumulative` selects cumulative temporality for all instrument kinds. `delta` selects delta aggregation temporality for Counter, Asynchronous Counter and Histogram instrument kinds, and selects cumulative aggregation for UpDownCounter and Asynchronous UpDownCounter instrument kinds. By default `cumulative` is used. |
73
+ | OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE | The exporters aggregation temporality preference. Valid values are `cumulative`, `delta`, and `lowmemory`. `cumulative` selects cumulative temporality for all instrument kinds. `delta` selects delta aggregation temporality for Counter, Asynchronous Counter and Histogram instrument kinds, and selects cumulative aggregation for UpDownCounter and Asynchronous UpDownCounter instrument kinds. `lowmemory` select delta aggregation temporality for Synchronous Counter and Histogram instrument kinds, and selects cumulative aggregation for Synchronous UpDownCounter, Asynchronous Counter and Asynchronous UpDownCounter instrument kinds. By default `cumulative` is used. |
74
74
 
75
75
  > Settings configured programmatically take precedence over environment variables. Per-signal environment variables take precedence over non-per-signal environment variables.
76
76
 
@@ -14,16 +14,7 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
25
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
26
- };
27
17
  Object.defineProperty(exports, "__esModule", { value: true });
28
- __exportStar(require("./OTLPMetricExporter"), exports);
18
+ const tslib_1 = require("tslib");
19
+ (0, tslib_1.__exportStar)(require("./OTLPMetricExporter"), exports);
29
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;AAEH,uDAAqC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './OTLPMetricExporter';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,oEAAqC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './OTLPMetricExporter';\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.40.0";
1
+ export declare const VERSION = "0.41.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -17,5 +17,5 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.VERSION = void 0;
19
19
  // this is autogenerated file, see scripts/version-update.js
20
- exports.VERSION = '0.40.0';
20
+ exports.VERSION = '0.41.0';
21
21
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.40.0';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.41.0';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentelemetry/exporter-metrics-otlp-grpc",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "description": "OpenTelemetry Collector Metrics Exporter allows user to send collected metrics to the OpenTelemetry Collector",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/src/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",
16
16
  "version": "node ../../../scripts/version-update.js",
17
17
  "watch": "tsc -w",
18
- "precompile": "lerna run version --scope $(npm pkg get name) --include-dependencies",
18
+ "precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies",
19
19
  "prewatch": "npm run precompile",
20
20
  "peer-api-check": "node ../../../scripts/peer-api-check.js",
21
21
  "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../"
@@ -47,17 +47,19 @@
47
47
  "access": "public"
48
48
  },
49
49
  "devDependencies": {
50
- "@babel/core": "7.16.0",
50
+ "@babel/core": "7.22.6",
51
51
  "@grpc/proto-loader": "^0.7.3",
52
52
  "@opentelemetry/api": "1.4.1",
53
- "@types/mocha": "10.0.0",
53
+ "@types/mocha": "10.0.1",
54
54
  "@types/node": "18.6.5",
55
- "@types/sinon": "10.0.13",
55
+ "@types/sinon": "10.0.15",
56
56
  "codecov": "3.8.3",
57
57
  "cpx": "1.5.0",
58
- "mocha": "10.0.0",
58
+ "cross-var": "1.1.0",
59
+ "lerna": "7.1.1",
60
+ "mocha": "10.2.0",
59
61
  "nyc": "15.1.0",
60
- "sinon": "15.0.0",
62
+ "sinon": "15.1.2",
61
63
  "ts-loader": "8.4.0",
62
64
  "ts-mocha": "10.0.0",
63
65
  "typescript": "4.4.4"
@@ -67,14 +69,15 @@
67
69
  },
68
70
  "dependencies": {
69
71
  "@grpc/grpc-js": "^1.7.1",
70
- "@opentelemetry/core": "1.14.0",
71
- "@opentelemetry/exporter-metrics-otlp-http": "0.40.0",
72
- "@opentelemetry/otlp-grpc-exporter-base": "0.40.0",
73
- "@opentelemetry/otlp-transformer": "0.40.0",
74
- "@opentelemetry/resources": "1.14.0",
75
- "@opentelemetry/sdk-metrics": "1.14.0"
72
+ "@opentelemetry/core": "1.15.0",
73
+ "@opentelemetry/exporter-metrics-otlp-http": "0.41.0",
74
+ "@opentelemetry/otlp-grpc-exporter-base": "0.41.0",
75
+ "@opentelemetry/otlp-transformer": "0.41.0",
76
+ "@opentelemetry/resources": "1.15.0",
77
+ "@opentelemetry/sdk-metrics": "1.15.0",
78
+ "tslib": "^2.3.1"
76
79
  },
77
80
  "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc",
78
81
  "sideEffects": false,
79
- "gitHead": "edebbcc757535bc88f01340409dbbecc0bb6ccf8"
82
+ "gitHead": "06e919d6c909e8cc8e28b6624d9843f401d9b059"
80
83
  }