@opentelemetry/exporter-prometheus
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -16,2 +16,2 @@ /*! | ||
*/ | ||
export declare const VERSION = "0.3.2"; | ||
export declare const VERSION = "0.3.3"; |
@@ -19,3 +19,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.3.2'; | ||
exports.VERSION = '0.3.3'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/exporter-prometheus", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "OpenTelemetry Exporter Prometheus provides a metrics endpoint for Prometheus", | ||
@@ -50,3 +50,3 @@ "main": "build/src/index.js", | ||
"ts-mocha": "^6.0.0", | ||
"ts-node": "^8.3.0", | ||
"ts-node": "^8.6.2", | ||
"tslint-consistent-codestyle": "^1.16.0", | ||
@@ -57,8 +57,8 @@ "tslint-microsoft-contrib": "^6.2.0", | ||
"dependencies": { | ||
"@opentelemetry/base": "^0.3.2", | ||
"@opentelemetry/core": "^0.3.2", | ||
"@opentelemetry/metrics": "^0.3.2", | ||
"@opentelemetry/types": "^0.3.2", | ||
"@opentelemetry/base": "^0.3.3", | ||
"@opentelemetry/core": "^0.3.3", | ||
"@opentelemetry/metrics": "^0.3.3", | ||
"@opentelemetry/types": "^0.3.3", | ||
"prom-client": "^11.5.3" | ||
} | ||
} |
@@ -25,3 +25,3 @@ # OpenTelemetry Prometheus Exporter | ||
const { PrometheusExporter } = require('@opentelemetry/exporter-prometheus'); | ||
const { Meter } = require('@opentelemetry/metrics'); | ||
const { MeterRegistry } = require('@opentelemetry/metrics'); | ||
@@ -33,3 +33,3 @@ // Add your port and startServer to the Prometheus options | ||
// Register the exporter | ||
const meter = new Meter(); | ||
const meter = new MeterRegistry().getMeter('exporter-prometheus'); | ||
meter.addExporter(exporter); | ||
@@ -36,0 +36,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37176
Updated@opentelemetry/base@^0.3.3
Updated@opentelemetry/core@^0.3.3
Updated@opentelemetry/types@^0.3.3