New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/exporter-prometheus

Package Overview
Dependencies
Maintainers
2
Versions
189
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/exporter-prometheus - npm Package Compare versions

Comparing version 0.35.1 to 0.36.0

4

build/src/PrometheusExporter.d.ts

@@ -26,3 +26,3 @@ /// <reference types="node" />

*/
constructor(config?: ExporterConfig, callback?: () => void);
constructor(config?: ExporterConfig, callback?: (error: Error | void) => void);
onForceFlush(): Promise<void>;

@@ -44,3 +44,3 @@ /**

* @param _request Incoming HTTP request of server instance
* @param response HTTP response objet used to response to request
* @param response HTTP response object used to response to request
*/

@@ -47,0 +47,0 @@ getMetricsRequestHandler(_request: IncomingMessage, response: ServerResponse): void;

@@ -35,3 +35,3 @@ "use strict";

*/
constructor(config = {}, callback) {
constructor(config = {}, callback = () => { }) {
super({

@@ -99,5 +99,6 @@ aggregationSelector: _instrumentType => sdk_metrics_1.Aggregation.Default(),

if (config.preventServerStart !== true) {
this.startServer()
.then(callback)
.catch(err => api_1.diag.error(err));
this.startServer().then(callback, err => {
api_1.diag.error(err);
callback(err);
});
}

@@ -146,3 +147,4 @@ else if (callback) {

startServer() {
return new Promise(resolve => {
return new Promise((resolve, reject) => {
this._server.once('error', reject);
this._server.listen({

@@ -160,3 +162,3 @@ port: this._port,

* @param _request Incoming HTTP request of server instance
* @param response HTTP response objet used to response to request
* @param response HTTP response object used to response to request
*/

@@ -163,0 +165,0 @@ getMetricsRequestHandler(_request, response) {

import { ResourceMetrics } from '@opentelemetry/sdk-metrics';
import { Resource } from '@opentelemetry/resources';
import { IResource } from '@opentelemetry/resources';
export declare class PrometheusSerializer {

@@ -12,4 +12,4 @@ private _prefix;

private _serializeHistogramDataPoint;
protected _serializeResource(resource: Resource): string;
protected _serializeResource(resource: IResource): string;
}
//# sourceMappingURL=PrometheusSerializer.d.ts.map

@@ -1,2 +0,2 @@

export declare const VERSION = "0.35.1";
export declare const VERSION = "0.36.0";
//# sourceMappingURL=version.d.ts.map

@@ -20,3 +20,3 @@ "use strict";

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.35.1';
exports.VERSION = '0.36.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/exporter-prometheus",
"version": "0.35.1",
"version": "0.36.0",
"description": "OpenTelemetry Exporter Prometheus provides a metrics endpoint for Prometheus",

@@ -46,4 +46,4 @@ "main": "build/src/index.js",

"devDependencies": {
"@opentelemetry/api": "^1.3.0",
"@opentelemetry/semantic-conventions": "1.9.1",
"@opentelemetry/api": "1.4.1",
"@opentelemetry/semantic-conventions": "1.10.0",
"@types/mocha": "10.0.0",

@@ -64,9 +64,9 @@ "@types/node": "18.6.5",

"dependencies": {
"@opentelemetry/core": "1.9.1",
"@opentelemetry/resources": "1.9.1",
"@opentelemetry/sdk-metrics": "1.9.1"
"@opentelemetry/core": "1.10.0",
"@opentelemetry/resources": "1.10.0",
"@opentelemetry/sdk-metrics": "1.10.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-exporter-prometheus",
"sideEffects": false,
"gitHead": "279458e7ddf16f7ddca5fe60c78672e05fafce66"
"gitHead": "56e6b1bb890f844b8963a146780d0b9cfa8abd0d"
}

@@ -28,3 +28,3 @@ # OpenTelemetry Prometheus Metric Exporter

// Add your port and startServer to the Prometheus options
const options = {port: 9464, startServer: true};
const options = {port: 9464};
const exporter = new PrometheusExporter(options);

@@ -31,0 +31,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc