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

@opentelemetry/plugin-ioredis

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/plugin-ioredis - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

5

build/src/ioredis.d.ts
import { BasePlugin } from '@opentelemetry/core';
import * as ioredisTypes from 'ioredis';
import type * as ioredisTypes from 'ioredis';
import { IoredisPluginConfig } from './types';
export declare class IORedisPlugin extends BasePlugin<typeof ioredisTypes> {
readonly moduleName: string;
static readonly COMPONENT = "ioredis";
static readonly DB_TYPE = "redis";
static readonly DB_SYSTEM = "redis";
readonly supportedVersions: string[];

@@ -9,0 +8,0 @@ protected _config: IoredisPluginConfig;

@@ -59,5 +59,4 @@ "use strict";

exports.IORedisPlugin = IORedisPlugin;
IORedisPlugin.COMPONENT = 'ioredis';
IORedisPlugin.DB_TYPE = 'redis';
exports.plugin = new IORedisPlugin(IORedisPlugin.COMPONENT);
IORedisPlugin.DB_SYSTEM = 'redis';
exports.plugin = new IORedisPlugin('ioredis');
//# sourceMappingURL=ioredis.js.map
/// <reference types="node" />
import * as ioredisTypes from 'ioredis';
import type * as ioredisTypes from 'ioredis';
import { PluginConfig } from '@opentelemetry/api';

@@ -12,5 +12,2 @@ export interface IoredisCommand {

}
export interface IoredisPluginClientTypes {
options: ioredisTypes.RedisOptions;
}
/**

@@ -17,0 +14,0 @@ * Function that can be used to serialize db.statement tag

8

build/src/utils.d.ts

@@ -1,6 +0,6 @@

import * as ioredisTypes from 'ioredis';
import type * as ioredisTypes from 'ioredis';
import { Tracer } from '@opentelemetry/api';
import { IoredisPluginClientTypes, IoredisCommand, IoredisPluginConfig } from './types';
export declare const traceConnection: (tracer: Tracer, original: Function) => (this: ioredisTypes.Redis & IoredisPluginClientTypes) => any;
export declare const traceSendCommand: (tracer: Tracer, original: Function, config?: IoredisPluginConfig | undefined) => (this: ioredisTypes.Redis & IoredisPluginClientTypes, cmd?: IoredisCommand | undefined) => any;
import { IoredisCommand, IoredisPluginConfig } from './types';
export declare const traceConnection: (tracer: Tracer, original: Function) => (this: ioredisTypes.Redis) => any;
export declare const traceSendCommand: (tracer: Tracer, original: Function, config?: IoredisPluginConfig | undefined) => (this: ioredisTypes.Redis, cmd?: IoredisCommand | undefined) => any;
//# sourceMappingURL=utils.d.ts.map

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

const ioredis_1 = require("./ioredis");
const enums_1 = require("./enums");
const semantic_conventions_1 = require("@opentelemetry/semantic-conventions");
const endSpan = (span, err) => {

@@ -40,5 +40,4 @@ if (err) {

attributes: {
[enums_1.AttributeNames.COMPONENT]: ioredis_1.IORedisPlugin.COMPONENT,
[enums_1.AttributeNames.DB_TYPE]: ioredis_1.IORedisPlugin.DB_TYPE,
[enums_1.AttributeNames.DB_STATEMENT]: 'connect',
[semantic_conventions_1.DatabaseAttribute.DB_SYSTEM]: ioredis_1.IORedisPlugin.DB_SYSTEM,
[semantic_conventions_1.DatabaseAttribute.DB_STATEMENT]: 'connect',
},

@@ -48,5 +47,5 @@ });

span.setAttributes({
[enums_1.AttributeNames.PEER_HOSTNAME]: host,
[enums_1.AttributeNames.PEER_PORT]: port,
[enums_1.AttributeNames.PEER_ADDRESS]: `redis://${host}:${port}`,
[semantic_conventions_1.GeneralAttribute.NET_PEER_HOSTNAME]: host,
[semantic_conventions_1.GeneralAttribute.NET_PEER_PORT]: port,
[semantic_conventions_1.GeneralAttribute.NET_PEER_ADDRESS]: `redis://${host}:${port}`,
});

@@ -80,5 +79,4 @@ try {

attributes: {
[enums_1.AttributeNames.COMPONENT]: ioredis_1.IORedisPlugin.COMPONENT,
[enums_1.AttributeNames.DB_TYPE]: ioredis_1.IORedisPlugin.DB_TYPE,
[enums_1.AttributeNames.DB_STATEMENT]: dbStatementSerializer(cmd.name, cmd.args),
[semantic_conventions_1.DatabaseAttribute.DB_SYSTEM]: ioredis_1.IORedisPlugin.DB_SYSTEM,
[semantic_conventions_1.DatabaseAttribute.DB_STATEMENT]: dbStatementSerializer(cmd.name, cmd.args),
},

@@ -88,5 +86,5 @@ });

span.setAttributes({
[enums_1.AttributeNames.PEER_HOSTNAME]: host,
[enums_1.AttributeNames.PEER_PORT]: port,
[enums_1.AttributeNames.PEER_ADDRESS]: `redis://${host}:${port}`,
[semantic_conventions_1.GeneralAttribute.NET_PEER_HOSTNAME]: host,
[semantic_conventions_1.GeneralAttribute.NET_PEER_PORT]: port,
[semantic_conventions_1.GeneralAttribute.NET_PEER_ADDRESS]: `redis://${host}:${port}`,
});

@@ -93,0 +91,0 @@ try {

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

export declare const VERSION = "0.9.0";
export declare const VERSION = "0.10.0";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.9.0';
exports.VERSION = '0.10.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/plugin-ioredis",
"version": "0.9.0",
"version": "0.10.0",
"description": "OpenTelemetry ioredis automatic instrumentation package.",

@@ -47,11 +47,12 @@ "main": "build/src/index.js",

"devDependencies": {
"@opentelemetry/context-async-hooks": "0.10.1",
"@opentelemetry/node": "0.10.1",
"@opentelemetry/test-utils": "^0.9.0",
"@opentelemetry/tracing": "0.10.1",
"@types/ioredis": "4.17.2",
"@opentelemetry/context-async-hooks": "^0.11.0",
"@opentelemetry/node": "^0.11.0",
"@opentelemetry/semantic-conventions": "^0.11.0",
"@opentelemetry/test-utils": "^0.10.0",
"@opentelemetry/tracing": "^0.11.0",
"@types/ioredis": "4.17.3",
"@types/mocha": "7.0.2",
"@types/node": "13.13.14",
"@types/node": "14.0.27",
"@types/shimmer": "1.0.1",
"codecov": "3.7.1",
"codecov": "3.7.2",
"cross-env": "7.0.2",

@@ -67,10 +68,10 @@ "gts": "2.0.2",

"tslint-microsoft-contrib": "6.2.0",
"typescript": "3.9.6"
"typescript": "3.9.7"
},
"dependencies": {
"@opentelemetry/api": "^0.10.1",
"@opentelemetry/core": "^0.10.1",
"@opentelemetry/api": "^0.11.0",
"@opentelemetry/core": "^0.11.0",
"shimmer": "^1.2.1"
},
"gitHead": "44dbe5bfb07e16380a297935a36c9bef109bf42e"
"gitHead": "903ee951bcfe54fb048a76aed5bf1117951605d7"
}
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