@opentelemetry/exporter-prometheus
Advanced tools
Comparing version 0.16.0 to 0.16.1-alpha.7
@@ -25,3 +25,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -28,0 +28,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,3 +1,5 @@ | ||
/// <reference types="node" /> | ||
import { ExportResult } from '@opentelemetry/core'; | ||
import { MetricExporter, MetricRecord } from '@opentelemetry/metrics'; | ||
import { IncomingMessage, ServerResponse } from 'http'; | ||
import { ExporterConfig } from './export/types'; | ||
@@ -52,2 +54,8 @@ export declare class PrometheusExporter implements MetricExporter { | ||
/** | ||
* Request handler that responds with the current state of metrics | ||
* @param request Incoming HTTP request of server instance | ||
* @param response HTTP response objet used to response to request | ||
*/ | ||
getMetricsRequestHandler(_request: IncomingMessage, response: ServerResponse): void; | ||
/** | ||
* Request handler used by http library to respond to incoming requests | ||
@@ -54,0 +62,0 @@ * for the current state of metrics by the Prometheus backend. |
@@ -155,2 +155,10 @@ "use strict"; | ||
} | ||
/** | ||
* Request handler that responds with the current state of metrics | ||
* @param request Incoming HTTP request of server instance | ||
* @param response HTTP response objet used to response to request | ||
*/ | ||
getMetricsRequestHandler(_request, response) { | ||
this._exportMetrics(response); | ||
} | ||
} | ||
@@ -157,0 +165,0 @@ exports.PrometheusExporter = PrometheusExporter; |
{ | ||
"name": "@opentelemetry/exporter-prometheus", | ||
"version": "0.16.0", | ||
"version": "0.16.1-alpha.7+a299b1dc", | ||
"description": "OpenTelemetry Exporter Prometheus provides a metrics endpoint for Prometheus", | ||
@@ -44,10 +44,12 @@ "main": "build/src/index.js", | ||
"@types/node": "14.14.20", | ||
"@types/sinon": "9.0.10", | ||
"codecov": "3.8.1", | ||
"gts": "2.0.2", | ||
"gts": "3.1.0", | ||
"mocha": "7.2.0", | ||
"nyc": "15.1.0", | ||
"rimraf": "3.0.2", | ||
"sinon": "9.2.3", | ||
"ts-mocha": "8.0.0", | ||
"ts-node": "9.1.1", | ||
"typescript": "3.9.7" | ||
"typescript": "4.1.3" | ||
}, | ||
@@ -60,3 +62,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "e68863f8e63854b08ad13fb54677294ac6d6b681" | ||
"gitHead": "a299b1dc1280d7d1621f0be216b314beaa51b64b" | ||
} |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
50593
606
12
2