Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/types

Package Overview
Dependencies
Maintainers
5
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/types - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

build/src/metrics/BoundInstrument.d.ts

2

build/src/index.d.ts

@@ -22,3 +22,3 @@ /*!

export * from './distributed_context/EntryValue';
export * from './metrics/Handle';
export * from './metrics/BoundInstrument';
export * from './metrics/Meter';

@@ -25,0 +25,0 @@ export * from './metrics/Metric';

@@ -17,3 +17,3 @@ /*!

import { Metric, MetricOptions, Labels, LabelSet } from './Metric';
import { CounterHandle, GaugeHandle, MeasureHandle } from './Handle';
import { BoundCounter, BoundGauge, BoundMeasure } from './BoundInstrument';
/**

@@ -32,3 +32,3 @@ * An interface to allow the recording metrics.

*/
createMeasure(name: string, options?: MetricOptions): Metric<MeasureHandle>;
createMeasure(name: string, options?: MetricOptions): Metric<BoundMeasure>;
/**

@@ -41,3 +41,3 @@ * Creates a new counter metric. Generally, this kind of metric when the

*/
createCounter(name: string, options?: MetricOptions): Metric<CounterHandle>;
createCounter(name: string, options?: MetricOptions): Metric<BoundCounter>;
/**

@@ -51,3 +51,3 @@ * Creates a new gauge metric. Generally, this kind of metric should be used

*/
createGauge(name: string, options?: MetricOptions): Metric<GaugeHandle>;
createGauge(name: string, options?: MetricOptions): Metric<BoundGauge>;
/**

@@ -54,0 +54,0 @@ * Provide a pre-computed re-useable LabelSet by

@@ -65,17 +65,17 @@ /*!

/**
* Returns a Handle associated with specified LabelSet.
* It is recommended to keep a reference to the Handle instead of always
* Returns a Instrument associated with specified LabelSet.
* It is recommended to keep a reference to the Instrument instead of always
* calling this method for every operations.
* @param labels the canonicalized LabelSet used to associate with this metric handle.
* @param labels the canonicalized LabelSet used to associate with this metric instrument.
*/
getHandle(labels: LabelSet): T;
bind(labels: LabelSet): T;
/**
* Returns a Handle for a metric with all labels not set.
* Returns a Instrument for a metric with all labels not set.
*/
getDefaultHandle(): T;
getDefaultBound(): T;
/**
* Removes the Handle from the metric, if it is present.
* @param labels the canonicalized LabelSet used to associate with this metric handle.
* Removes the Instrument from the metric, if it is present.
* @param labels the canonicalized LabelSet used to associate with this metric instrument.
*/
removeHandle(labels: LabelSet): void;
unbind(labels: LabelSet): void;
/**

@@ -82,0 +82,0 @@ * Clears all timeseries from the Metric.

{
"name": "@opentelemetry/types",
"version": "0.3.1",
"version": "0.3.2",
"description": "TypeScript types for OpenTelemetry",

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

"precompile": "tsc --version",
"compile": "tsc -p .",
"version:update": "node ../../scripts/version-update.js",
"compile": "npm run version:update && tsc -p .",
"fix": "gts fix",

@@ -15,0 +16,0 @@ "docs-test": "linkinator docs/out",

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