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

@opencensus/instrumentation-ioredis

Package Overview
Dependencies
Maintainers
7
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencensus/instrumentation-ioredis - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

4

build/src/ioredis.d.ts

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

import { BasePlugin, Span } from '@opencensus/core';
export declare type IORedisCommand = {
export interface IORedisCommand {
reject: (err: Error) => void;

@@ -25,3 +25,3 @@ resolve: (result: {}) => void;

name: string;
};
}
/** IORedis instrumentation plugin for Opencensus */

@@ -28,0 +28,0 @@ export declare class IORedisPlugin extends BasePlugin {

@@ -58,3 +58,6 @@ "use strict";

}
const span = plugin.tracer.startChildSpan({ name: `redis-${command.name}`, kind: core_1.SpanKind.CLIENT });
const span = plugin.tracer.startChildSpan({
name: `redis-${command.name}`,
kind: core_1.SpanKind.CLIENT,
});
if (span === null)

@@ -81,3 +84,4 @@ return original.apply(this, arguments);

else if (typeof command.promise.then === 'function') {
command.promise.then(plugin.patchEnd(span))
command.promise
.then(plugin.patchEnd(span))
.catch(plugin.patchEnd(span));

@@ -84,0 +88,0 @@ }

{
"name": "@opencensus/instrumentation-ioredis",
"version": "0.0.14",
"version": "0.0.15",
"description": "Opencensus IORedis automatic instrumentation package.",

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

"scripts": {
"test": "nyc ts-mocha -p ./tsconfig.json test/**/*.ts",
"test": "nyc mocha build/test/**/*.js",
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json",

@@ -60,4 +60,4 @@ "clean": "rimraf build/*",

"@types/shimmer": "^1.0.1",
"codecov": "^3.4.0",
"gts": "^0.9.0",
"codecov": "^3.5.0",
"gts": "^1.0.0",
"ioredis": "^4.6.2",

@@ -72,3 +72,3 @@ "mocha": "^6.1.0",

"dependencies": {
"@opencensus/core": "^0.0.14",
"@opencensus/core": "^0.0.15",
"semver": "^6.0.0",

@@ -75,0 +75,0 @@ "shimmer": "^1.2.0"

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