@opentelemetry/exporter-metrics-otlp-grpc 0.55.0 → 0.57.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.
@@ -1,15 +1,9 @@
1
1
  import { OTLPMetricExporterBase, OTLPMetricExporterOptions } from '@opentelemetry/exporter-metrics-otlp-http';
2
- import { ResourceMetrics } from '@opentelemetry/sdk-metrics';
3
- import { OTLPGRPCExporterConfigNode, OTLPGRPCExporterNodeBase } from '@opentelemetry/otlp-grpc-exporter-base';
4
- import { IExportMetricsServiceResponse } from '@opentelemetry/otlp-transformer';
5
- declare class OTLPMetricExporterProxy extends OTLPGRPCExporterNodeBase<ResourceMetrics, IExportMetricsServiceResponse> {
6
- constructor(config?: OTLPGRPCExporterConfigNode & OTLPMetricExporterOptions);
7
- }
2
+ import { OTLPGRPCExporterConfigNode } from '@opentelemetry/otlp-grpc-exporter-base';
8
3
  /**
9
4
  * OTLP-gRPC metric exporter
10
5
  */
11
- export declare class OTLPMetricExporter extends OTLPMetricExporterBase<OTLPMetricExporterProxy> {
6
+ export declare class OTLPMetricExporter extends OTLPMetricExporterBase {
12
7
  constructor(config?: OTLPGRPCExporterConfigNode & OTLPMetricExporterOptions);
13
8
  }
14
- export {};
15
9
  //# sourceMappingURL=OTLPMetricExporter.d.ts.map
@@ -19,17 +19,12 @@ exports.OTLPMetricExporter = void 0;
19
19
  const exporter_metrics_otlp_http_1 = require("@opentelemetry/exporter-metrics-otlp-http");
20
20
  const otlp_grpc_exporter_base_1 = require("@opentelemetry/otlp-grpc-exporter-base");
21
21
  const otlp_transformer_1 = require("@opentelemetry/otlp-transformer");
22
- class OTLPMetricExporterProxy extends otlp_grpc_exporter_base_1.OTLPGRPCExporterNodeBase {
23
- constructor(config) {
24
- super(config, otlp_transformer_1.ProtobufMetricsSerializer, 'MetricsExportService', '/opentelemetry.proto.collector.metrics.v1.MetricsService/Export', 'METRICS');
25
- }
26
- }
27
22
  /**
28
23
  * OTLP-gRPC metric exporter
29
24
  */
30
25
  class OTLPMetricExporter extends exporter_metrics_otlp_http_1.OTLPMetricExporterBase {
31
26
  constructor(config) {
32
- super(new OTLPMetricExporterProxy(config), config);
27
+ super((0, otlp_grpc_exporter_base_1.createOtlpGrpcExportDelegate)((0, otlp_grpc_exporter_base_1.convertLegacyOtlpGrpcOptions)(config !== null && config !== void 0 ? config : {}, 'METRICS'), otlp_transformer_1.ProtobufMetricsSerializer, 'MetricsExportService', '/opentelemetry.proto.collector.metrics.v1.MetricsService/Export'), config);
33
28
  }
34
29
  }
35
30
  exports.OTLPMetricExporter = OTLPMetricExporter;
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../src/OTLPMetricExporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0FAGmD;AAEnD,oFAGgD;AAChD,sEAGyC;AAEzC,MAAM,uBAAwB,SAAQ,kDAGrC;IACC,YAAY,MAA+D;QACzE,KAAK,CACH,MAAM,EACN,4CAAyB,EACzB,sBAAsB,EACtB,iEAAiE,EACjE,SAAS,CACV,CAAC;IACJ,CAAC;CACF;AAED;;GAEG;AACH,MAAa,kBAAmB,SAAQ,mDAA+C;IACrF,YAAY,MAA+D;QACzE,KAAK,CAAC,IAAI,uBAAuB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;CACF;AAJD,gDAIC","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\nimport {\n OTLPMetricExporterBase,\n OTLPMetricExporterOptions,\n} from '@opentelemetry/exporter-metrics-otlp-http';\nimport { ResourceMetrics } from '@opentelemetry/sdk-metrics';\nimport {\n OTLPGRPCExporterConfigNode,\n OTLPGRPCExporterNodeBase,\n} from '@opentelemetry/otlp-grpc-exporter-base';\nimport {\n IExportMetricsServiceResponse,\n ProtobufMetricsSerializer,\n} from '@opentelemetry/otlp-transformer';\n\nclass OTLPMetricExporterProxy extends OTLPGRPCExporterNodeBase<\n ResourceMetrics,\n IExportMetricsServiceResponse\n> {\n constructor(config?: OTLPGRPCExporterConfigNode & OTLPMetricExporterOptions) {\n super(\n config,\n ProtobufMetricsSerializer,\n 'MetricsExportService',\n '/opentelemetry.proto.collector.metrics.v1.MetricsService/Export',\n 'METRICS'\n );\n }\n}\n\n/**\n * OTLP-gRPC metric exporter\n */\nexport class OTLPMetricExporter extends OTLPMetricExporterBase<OTLPMetricExporterProxy> {\n constructor(config?: OTLPGRPCExporterConfigNode & OTLPMetricExporterOptions) {\n super(new OTLPMetricExporterProxy(config), config);\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../src/OTLPMetricExporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0FAGmD;AACnD,oFAIgD;AAChD,sEAA4E;AAE5E;;GAEG;AACH,MAAa,kBAAmB,SAAQ,mDAAsB;IAC5D,YAAY,MAA+D;QACzE,KAAK,CACH,IAAA,sDAA4B,EAC1B,IAAA,sDAA4B,EAAC,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,EAAE,SAAS,CAAC,EACrD,4CAAyB,EACzB,sBAAsB,EACtB,iEAAiE,CAClE,EACD,MAAM,CACP,CAAC;IACJ,CAAC;CACF;AAZD,gDAYC","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\nimport {\n OTLPMetricExporterBase,\n OTLPMetricExporterOptions,\n} from '@opentelemetry/exporter-metrics-otlp-http';\nimport {\n convertLegacyOtlpGrpcOptions,\n createOtlpGrpcExportDelegate,\n OTLPGRPCExporterConfigNode,\n} from '@opentelemetry/otlp-grpc-exporter-base';\nimport { ProtobufMetricsSerializer } from '@opentelemetry/otlp-transformer';\n\n/**\n * OTLP-gRPC metric exporter\n */\nexport class OTLPMetricExporter extends OTLPMetricExporterBase {\n constructor(config?: OTLPGRPCExporterConfigNode & OTLPMetricExporterOptions) {\n super(\n createOtlpGrpcExportDelegate(\n convertLegacyOtlpGrpcOptions(config ?? {}, 'METRICS'),\n ProtobufMetricsSerializer,\n 'MetricsExportService',\n '/opentelemetry.proto.collector.metrics.v1.MetricsService/Export'\n ),\n config\n );\n }\n}\n"]}
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
28
  /* eslint no-restricted-syntax: ["warn", "ExportAllDeclaration"] --
29
- * TODO: Replace export * with named exports before next major version
29
+ * TODO: Replace wildcard export with named exports before next major version
30
30
  */
31
31
  __exportStar(require("./OTLPMetricExporter"), exports);
32
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;AAEH;;GAEG;AACH,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\n/* eslint no-restricted-syntax: [\"warn\", \"ExportAllDeclaration\"] --\n * TODO: Replace export * with named exports before next major version\n */\nexport * from './OTLPMetricExporter';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;AAEH;;GAEG;AACH,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\n/* eslint no-restricted-syntax: [\"warn\", \"ExportAllDeclaration\"] --\n * TODO: Replace wildcard export with named exports before next major version\n */\nexport * from './OTLPMetricExporter';\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.55.0";
1
+ export declare const VERSION = "0.57.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.55.0';
20
+ exports.VERSION = '0.57.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.55.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.57.0';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentelemetry/exporter-metrics-otlp-grpc",
3
- "version": "0.55.0",
3
+ "version": "0.57.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",
@@ -18,8 +18,7 @@
18
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
- "align-api-deps": "node ../../../scripts/align-api-deps.js",
22
- "maint:regenerate-test-certs": "cd test/certs && ./regenerate.sh"
21
+ "align-api-deps": "node ../../../scripts/align-api-deps.js"
23
22
  },
24
23
  "keywords": [
25
24
  "opentelemetry",
@@ -50,7 +49,7 @@
50
49
  "devDependencies": {
51
50
  "@grpc/proto-loader": "^0.7.10",
52
51
  "@opentelemetry/api": "1.9.0",
53
- "@types/mocha": "10.0.9",
52
+ "@types/mocha": "10.0.10",
54
53
  "@types/node": "18.6.5",
55
54
  "@types/sinon": "17.0.3",
56
55
  "cross-var": "1.1.0",
@@ -66,15 +65,15 @@
66
65
  },
67
66
  "dependencies": {
68
67
  "@grpc/grpc-js": "^1.7.1",
69
- "@opentelemetry/core": "1.28.0",
70
- "@opentelemetry/exporter-metrics-otlp-http": "0.55.0",
71
- "@opentelemetry/otlp-exporter-base": "0.55.0",
72
- "@opentelemetry/otlp-grpc-exporter-base": "0.55.0",
73
- "@opentelemetry/otlp-transformer": "0.55.0",
74
- "@opentelemetry/resources": "1.28.0",
75
- "@opentelemetry/sdk-metrics": "1.28.0"
68
+ "@opentelemetry/core": "1.30.0",
69
+ "@opentelemetry/exporter-metrics-otlp-http": "0.57.0",
70
+ "@opentelemetry/otlp-exporter-base": "0.57.0",
71
+ "@opentelemetry/otlp-grpc-exporter-base": "0.57.0",
72
+ "@opentelemetry/otlp-transformer": "0.57.0",
73
+ "@opentelemetry/resources": "1.30.0",
74
+ "@opentelemetry/sdk-metrics": "1.30.0"
76
75
  },
77
76
  "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc",
78
77
  "sideEffects": false,
79
- "gitHead": "4b1ad3fda0cde58907e30fab25c3c767546708e5"
78
+ "gitHead": "616d27a0a111c9b813d14c56d8d8f1ffbd7d7156"
80
79
  }