Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-ioredis

Package Overview
Dependencies
Maintainers
2
Versions
40
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.27.1 to 0.28.0

1

build/src/instrumentation.d.ts

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

export declare class IORedisInstrumentation extends InstrumentationBase<typeof ioredisTypes> {
static readonly DB_SYSTEM = "redis";
constructor(_config?: IORedisInstrumentationConfig);

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

9

build/src/instrumentation.js

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

attributes: {
[semantic_conventions_1.SemanticAttributes.DB_SYSTEM]: IORedisInstrumentation.DB_SYSTEM,
[semantic_conventions_1.SemanticAttributes.DB_SYSTEM]: semantic_conventions_1.DbSystemValues.REDIS,
[semantic_conventions_1.SemanticAttributes.DB_STATEMENT]: dbStatementSerializer(cmd.name, cmd.args),

@@ -66,3 +66,3 @@ },

[semantic_conventions_1.SemanticAttributes.NET_PEER_PORT]: port,
[semantic_conventions_1.SemanticAttributes.NET_PEER_IP]: `redis://${host}:${port}`,
[semantic_conventions_1.SemanticAttributes.DB_CONNECTION_STRING]: `redis://${host}:${port}`,
});

@@ -101,3 +101,3 @@ try {

attributes: {
[semantic_conventions_1.SemanticAttributes.DB_SYSTEM]: IORedisInstrumentation.DB_SYSTEM,
[semantic_conventions_1.SemanticAttributes.DB_SYSTEM]: semantic_conventions_1.DbSystemValues.REDIS,
[semantic_conventions_1.SemanticAttributes.DB_STATEMENT]: 'connect',

@@ -110,3 +110,3 @@ },

[semantic_conventions_1.SemanticAttributes.NET_PEER_PORT]: port,
[semantic_conventions_1.SemanticAttributes.NET_PEER_IP]: `redis://${host}:${port}`,
[semantic_conventions_1.SemanticAttributes.DB_CONNECTION_STRING]: `redis://${host}:${port}`,
});

@@ -162,3 +162,2 @@ try {

exports.IORedisInstrumentation = IORedisInstrumentation;
IORedisInstrumentation.DB_SYSTEM = 'redis';
//# sourceMappingURL=instrumentation.js.map

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

export declare const VERSION = "0.27.1";
export declare const VERSION = "0.28.0";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.27.1';
exports.VERSION = '0.28.0';
//# sourceMappingURL=version.js.map
# Changelog
## [0.28.0](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/instrumentation-ioredis-v0.27.1...instrumentation-ioredis-v0.28.0) (2022-03-02)
### ⚠ BREAKING CHANGES
* **ioredis:** net.peer.ip -> db.connection_string
### Bug Fixes
* **ioredis:** net.peer.ip -> db.connection_string ([986c349](https://github.com/open-telemetry/opentelemetry-js-contrib/commit/986c3499b324ebdf49aabf35bc3711c91bb91ec8))
### [0.27.1](https://www.github.com/open-telemetry/opentelemetry-js-contrib/compare/instrumentation-ioredis-v0.27.0...instrumentation-ioredis-v0.27.1) (2022-01-24)

@@ -50,2 +61,2 @@

* devDependencies
* @opentelemetry/contrib-test-utils bumped from ^0.25.0 to ^0.27.0
* @opentelemetry/contrib-test-utils bumped from ^0.25.0 to ^0.27.0
{
"name": "@opentelemetry/instrumentation-ioredis",
"version": "0.27.1",
"version": "0.28.0",
"description": "OpenTelemetry ioredis automatic instrumentation package.",

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

"compile": "npm run version:update && tsc -p .",
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
"prepare": "npm run compile"

@@ -61,5 +60,4 @@ },

"@types/mocha": "7.0.2",
"@types/node": "14.17.9",
"@types/sinon": "^10.0.6",
"codecov": "3.8.3",
"@types/node": "16.11.21",
"@types/sinon": "10.0.9",
"cross-env": "7.0.3",

@@ -71,3 +69,3 @@ "gts": "3.1.0",

"rimraf": "3.0.2",
"sinon": "^12.0.1",
"sinon": "13.0.1",
"test-all-versions": "5.0.1",

@@ -82,3 +80,3 @@ "ts-mocha": "8.0.0",

},
"gitHead": "edfc04cbe3e7faaa365724ddc26bf702b68cc008"
"gitHead": "78717b6dda677bf737811c34df21ef0ec88c31a3"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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