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

@opentelemetry/instrumentation-ioredis

Package Overview
Dependencies
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-ioredis - npm Package Compare versions

Comparing version 0.15.0 to 0.16.0

1

build/src/ioredis.d.ts

@@ -6,3 +6,2 @@ import type * as ioredisTypes from 'ioredis';

static readonly DB_SYSTEM = "redis";
readonly supportedVersions: string[];
constructor(_config?: IORedisInstrumentationConfig);

@@ -9,0 +8,0 @@ init(): InstrumentationNodeModuleDefinition<typeof ioredisTypes>[];

3

build/src/ioredis.js

@@ -29,7 +29,6 @@ "use strict";

super('@opentelemetry/instrumentation-ioredis', version_1.VERSION, Object.assign({}, DEFAULT_CONFIG, _config));
this.supportedVersions = ['>1 <5'];
}
init() {
return [
new instrumentation_1.InstrumentationNodeModuleDefinition('ioredis', this.supportedVersions, moduleExports => {
new instrumentation_1.InstrumentationNodeModuleDefinition('ioredis', ['>1 <5'], moduleExports => {
api_1.diag.debug('Applying patch for ioredis');

@@ -36,0 +35,0 @@ if (instrumentation_1.isWrapped(moduleExports.prototype.sendCommand)) {

@@ -38,4 +38,4 @@ "use strict";

attributes: {
[semantic_conventions_1.DatabaseAttribute.DB_SYSTEM]: ioredis_1.IORedisInstrumentation.DB_SYSTEM,
[semantic_conventions_1.DatabaseAttribute.DB_STATEMENT]: 'connect',
[semantic_conventions_1.SemanticAttributes.DB_SYSTEM]: ioredis_1.IORedisInstrumentation.DB_SYSTEM,
[semantic_conventions_1.SemanticAttributes.DB_STATEMENT]: 'connect',
},

@@ -45,5 +45,5 @@ });

span.setAttributes({
[semantic_conventions_1.GeneralAttribute.NET_PEER_NAME]: host,
[semantic_conventions_1.GeneralAttribute.NET_PEER_PORT]: port,
[semantic_conventions_1.GeneralAttribute.NET_PEER_ADDRESS]: `redis://${host}:${port}`,
[semantic_conventions_1.SemanticAttributes.NET_PEER_NAME]: host,
[semantic_conventions_1.SemanticAttributes.NET_PEER_PORT]: port,
[semantic_conventions_1.SemanticAttributes.NET_PEER_IP]: `redis://${host}:${port}`,
});

@@ -77,4 +77,4 @@ try {

attributes: {
[semantic_conventions_1.DatabaseAttribute.DB_SYSTEM]: ioredis_1.IORedisInstrumentation.DB_SYSTEM,
[semantic_conventions_1.DatabaseAttribute.DB_STATEMENT]: dbStatementSerializer(cmd.name, cmd.args),
[semantic_conventions_1.SemanticAttributes.DB_SYSTEM]: ioredis_1.IORedisInstrumentation.DB_SYSTEM,
[semantic_conventions_1.SemanticAttributes.DB_STATEMENT]: dbStatementSerializer(cmd.name, cmd.args),
},

@@ -84,5 +84,5 @@ });

span.setAttributes({
[semantic_conventions_1.GeneralAttribute.NET_PEER_NAME]: host,
[semantic_conventions_1.GeneralAttribute.NET_PEER_PORT]: port,
[semantic_conventions_1.GeneralAttribute.NET_PEER_ADDRESS]: `redis://${host}:${port}`,
[semantic_conventions_1.SemanticAttributes.NET_PEER_NAME]: host,
[semantic_conventions_1.SemanticAttributes.NET_PEER_PORT]: port,
[semantic_conventions_1.SemanticAttributes.NET_PEER_IP]: `redis://${host}:${port}`,
});

@@ -89,0 +89,0 @@ try {

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

export declare const VERSION = "0.15.0";
export declare const VERSION = "0.16.0";
//# sourceMappingURL=version.d.ts.map

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

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

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

"devDependencies": {
"@opentelemetry/context-async-hooks": "0.18.2",
"@opentelemetry/node": "0.18.2",
"@opentelemetry/test-utils": "^0.15.0",
"@opentelemetry/tracing": "0.18.2",
"@opentelemetry/context-async-hooks": "0.19.0",
"@opentelemetry/node": "0.19.0",
"@opentelemetry/test-utils": "^0.16.0",
"@opentelemetry/tracing": "0.19.0",
"@types/ioredis": "4.17.3",

@@ -64,3 +64,2 @@ "@types/mocha": "7.0.2",

"ts-mocha": "8.0.0",
"ts-node": "9.0.0",
"tslint-consistent-codestyle": "1.16.0",

@@ -71,7 +70,7 @@ "tslint-microsoft-contrib": "6.2.0",

"dependencies": {
"@opentelemetry/api": "^0.18.0",
"@opentelemetry/instrumentation": "^0.18.0",
"@opentelemetry/semantic-conventions": "^0.18.0"
"@opentelemetry/api": "^1.0.0-rc.0",
"@opentelemetry/instrumentation": "^0.19.0",
"@opentelemetry/semantic-conventions": "^0.19.0"
},
"gitHead": "a2de7757da17a026433f0735035f65f7f88f1666"
"gitHead": "5ecccc916e8f4eecaf6629a0350fc672edcba1be"
}

@@ -33,3 +33,2 @@ # OpenTelemetry ioredis Instrumentation for Node.js

const provider = new NodeTracerProvider();
provider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));
provider.register();

@@ -41,9 +40,3 @@

// see under for available configuration
}),
{
// be sure to disable old plugin but only if it was installed
plugins: {
ioredis: { enabled: false, path: '@opentelemetry/plugin-ioredis' }
},
}
})
],

@@ -50,0 +43,0 @@ tracerProvider: provider,

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