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

@opentelemetry/instrumentation-cassandra-driver

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-cassandra-driver - npm Package Compare versions

Comparing version 0.40.0 to 0.41.0

3

build/src/instrumentation.d.ts
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import { CassandraDriverInstrumentationConfig } from './types';
export declare class CassandraDriverInstrumentation extends InstrumentationBase {
protected _config: CassandraDriverInstrumentationConfig;
export declare class CassandraDriverInstrumentation extends InstrumentationBase<CassandraDriverInstrumentationConfig> {
constructor(config?: CassandraDriverInstrumentationConfig);

@@ -6,0 +5,0 @@ protected init(): InstrumentationNodeModuleDefinition;

@@ -73,9 +73,7 @@ "use strict";

var _a;
const config = this.getConfig();
return (_a = config.maxQueryLength) !== null && _a !== void 0 ? _a : 65536;
return (_a = this.getConfig().maxQueryLength) !== null && _a !== void 0 ? _a : 65536;
}
_shouldIncludeDbStatement() {
var _a;
const config = this.getConfig();
return (_a = config.enhancedDatabaseReporting) !== null && _a !== void 0 ? _a : false;
return (_a = this.getConfig().enhancedDatabaseReporting) !== null && _a !== void 0 ? _a : false;
}

@@ -219,6 +217,7 @@ _getPatchedExecute() {

_callResponseHook(span, response) {
if (!this._config.responseHook) {
const { responseHook } = this.getConfig();
if (!responseHook) {
return;
}
(0, instrumentation_1.safeExecuteInTheMiddle)(() => this._config.responseHook(span, { response: response }), e => {
(0, instrumentation_1.safeExecuteInTheMiddle)(() => responseHook(span, { response: response }), e => {
if (e) {

@@ -225,0 +224,0 @@ this._diag.error('responseHook error', e);

@@ -1,3 +0,3 @@

export declare const PACKAGE_VERSION = "0.40.0";
export declare const PACKAGE_VERSION = "0.41.0";
export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-cassandra-driver";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.PACKAGE_VERSION = '0.40.0';
exports.PACKAGE_VERSION = '0.41.0';
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-cassandra-driver';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-cassandra-driver",
"version": "0.40.0",
"version": "0.41.0",
"description": "OpenTelemetry instrumentation for `cassandra-driver` database client library for Apache Cassandra",

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

"@opentelemetry/context-async-hooks": "^1.8.0",
"@opentelemetry/contrib-test-utils": "^0.40.0",
"@opentelemetry/contrib-test-utils": "^0.41.0",
"@opentelemetry/sdk-trace-base": "^1.8.0",

@@ -55,8 +55,8 @@ "@opentelemetry/sdk-trace-node": "^1.8.0",

"@types/node": "18.6.5",
"@types/semver": "7.5.3",
"@types/sinon": "10.0.18",
"@types/semver": "7.5.8",
"@types/sinon": "10.0.20",
"cassandra-driver": "4.6.4",
"mocha": "7.2.0",
"nyc": "15.1.0",
"rimraf": "5.0.5",
"rimraf": "5.0.10",
"sinon": "15.2.0",

@@ -67,7 +67,7 @@ "ts-mocha": "10.0.0",

"dependencies": {
"@opentelemetry/instrumentation": "^0.52.0",
"@opentelemetry/semantic-conventions": "^1.22.0"
"@opentelemetry/instrumentation": "^0.53.0",
"@opentelemetry/semantic-conventions": "^1.27.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-cassandra#readme",
"gitHead": "ad8436d6a4174f2288cb939080cd4e74da94b0d7"
"gitHead": "9dc58afed8134f95908331bcff35c5d9ec46fe9a"
}

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