@opencensus/instrumentation-ioredis
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -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" |
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
21556
194
+ Added@opencensus/core@0.0.15(transitive)
- Removed@opencensus/core@0.0.14(transitive)
Updated@opencensus/core@^0.0.15