@opentelemetry/exporter-prometheus
Advanced tools
Comparing version 0.3.3 to 0.4.0
@@ -16,3 +16,3 @@ /*! | ||
*/ | ||
import * as types from '@opentelemetry/types'; | ||
import * as types from '@opentelemetry/api'; | ||
/** | ||
@@ -19,0 +19,0 @@ * Configuration interface for prometheus exporter |
@@ -16,2 +16,2 @@ /*! | ||
*/ | ||
export declare const VERSION = "0.3.3"; | ||
export declare const VERSION = "0.4.0"; |
@@ -19,3 +19,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.3.3'; | ||
exports.VERSION = '0.4.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/exporter-prometheus", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"description": "OpenTelemetry Exporter Prometheus provides a metrics endpoint for Prometheus", | ||
@@ -10,3 +10,3 @@ "main": "build/src/index.js", | ||
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.ts'", | ||
"tdd": "yarn test -- --watch-extensions ts --watch", | ||
"tdd": "npm run test -- --watch-extensions ts --watch", | ||
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", | ||
@@ -57,8 +57,8 @@ "clean": "rimraf build/*", | ||
"dependencies": { | ||
"@opentelemetry/base": "^0.3.3", | ||
"@opentelemetry/core": "^0.3.3", | ||
"@opentelemetry/metrics": "^0.3.3", | ||
"@opentelemetry/types": "^0.3.3", | ||
"@opentelemetry/api": "^0.4.0", | ||
"@opentelemetry/base": "^0.4.0", | ||
"@opentelemetry/core": "^0.4.0", | ||
"@opentelemetry/metrics": "^0.4.0", | ||
"prom-client": "^11.5.3" | ||
} | ||
} |
@@ -25,3 +25,3 @@ # OpenTelemetry Prometheus Exporter | ||
const { PrometheusExporter } = require('@opentelemetry/exporter-prometheus'); | ||
const { MeterRegistry } = require('@opentelemetry/metrics'); | ||
const { MeterProvider } = require('@opentelemetry/metrics'); | ||
@@ -33,3 +33,3 @@ // Add your port and startServer to the Prometheus options | ||
// Register the exporter | ||
const meter = new MeterRegistry().getMeter('exporter-prometheus'); | ||
const meter = new MeterProvider().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
37175
+ Added@opentelemetry/api@^0.4.0
+ Added@opentelemetry/api@0.4.0(transitive)
+ Added@opentelemetry/base@0.4.0(transitive)
+ Added@opentelemetry/core@0.4.0(transitive)
+ Added@opentelemetry/metrics@0.4.0(transitive)
- Removed@opentelemetry/types@^0.3.3
- Removed@opentelemetry/base@0.3.3(transitive)
- Removed@opentelemetry/core@0.3.3(transitive)
- Removed@opentelemetry/metrics@0.3.3(transitive)
- Removed@opentelemetry/types@0.3.3(transitive)
Updated@opentelemetry/base@^0.4.0
Updated@opentelemetry/core@^0.4.0