@opentelemetry/instrumentation-net
Advanced tools
Comparing version 0.35.0 to 0.36.0
import { InstrumentationBase, InstrumentationConfig, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation'; | ||
import { Net } from './internal-types'; | ||
export declare class NetInstrumentation extends InstrumentationBase<Net> { | ||
export declare class NetInstrumentation extends InstrumentationBase { | ||
constructor(_config?: InstrumentationConfig); | ||
init(): InstrumentationNodeModuleDefinition<Net>[]; | ||
init(): InstrumentationNodeModuleDefinition[]; | ||
private _getPatchedConnect; | ||
@@ -7,0 +6,0 @@ private _startSpan; |
@@ -33,4 +33,3 @@ "use strict"; | ||
return [ | ||
new instrumentation_1.InstrumentationNodeModuleDefinition('net', ['*'], moduleExports => { | ||
api_1.diag.debug('Applying patch for net module'); | ||
new instrumentation_1.InstrumentationNodeModuleDefinition('net', ['*'], (moduleExports) => { | ||
if ((0, instrumentation_1.isWrapped)(moduleExports.Socket.prototype.connect)) { | ||
@@ -43,6 +42,5 @@ this._unwrap(moduleExports.Socket.prototype, 'connect'); | ||
return moduleExports; | ||
}, moduleExports => { | ||
}, (moduleExports) => { | ||
if (moduleExports === undefined) | ||
return; | ||
api_1.diag.debug('Removing patch from net module'); | ||
this._unwrap(moduleExports.Socket.prototype, 'connect'); | ||
@@ -49,0 +47,0 @@ }), |
@@ -1,4 +0,1 @@ | ||
/// <reference types="node" /> | ||
import type * as net from 'net'; | ||
export declare type Net = typeof net; | ||
export interface NormalizedOptions { | ||
@@ -5,0 +2,0 @@ host?: string; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.35.0"; | ||
export declare const VERSION = "0.36.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.35.0'; | ||
exports.VERSION = '0.36.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-net", | ||
"version": "0.35.0", | ||
"version": "0.36.0", | ||
"description": "OpenTelemetry net module automatic instrumentation package.", | ||
@@ -61,7 +61,7 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opentelemetry/instrumentation": "^0.50.0", | ||
"@opentelemetry/instrumentation": "^0.51.0", | ||
"@opentelemetry/semantic-conventions": "^1.0.0" | ||
}, | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-net#readme", | ||
"gitHead": "17a0bc1da3baa472ba9b867eee3c60730cc130fb" | ||
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
54837
404
+ Added@opentelemetry/api-logs@0.51.1(transitive)
+ Added@opentelemetry/instrumentation@0.51.1(transitive)
+ Addedacorn-import-attributes@1.9.5(transitive)
+ Addedimport-in-the-middle@1.7.4(transitive)
- Removed@opentelemetry/api-logs@0.50.0(transitive)
- Removed@opentelemetry/instrumentation@0.50.0(transitive)
- Removedacorn-import-assertions@1.9.0(transitive)
- Removedimport-in-the-middle@1.7.1(transitive)