@opentelemetry/instrumentation-restify
Advanced tools
Comparing version 0.40.0 to 0.41.0
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation'; | ||
import type { RestifyInstrumentationConfig } from './types'; | ||
export declare class RestifyInstrumentation extends InstrumentationBase { | ||
export declare class RestifyInstrumentation extends InstrumentationBase<RestifyInstrumentationConfig> { | ||
constructor(config?: RestifyInstrumentationConfig); | ||
private _moduleVersion?; | ||
private _isDisabled; | ||
setConfig(config?: RestifyInstrumentationConfig): void; | ||
getConfig(): RestifyInstrumentationConfig; | ||
init(): InstrumentationNodeModuleDefinition; | ||
@@ -10,0 +8,0 @@ private _middlewarePatcher; |
@@ -34,8 +34,2 @@ "use strict"; | ||
} | ||
setConfig(config = {}) { | ||
this._config = Object.assign({}, config); | ||
} | ||
getConfig() { | ||
return this._config; | ||
} | ||
init() { | ||
@@ -122,3 +116,3 @@ const module = new instrumentation_1.InstrumentationNodeModuleDefinition(constants.MODULE_NAME, supportedVersions, (moduleExports, moduleVersion) => { | ||
const instrumentation = this; | ||
const requestHook = instrumentation.getConfig().requestHook; | ||
const { requestHook } = instrumentation.getConfig(); | ||
if (requestHook) { | ||
@@ -125,0 +119,0 @@ (0, instrumentation_1.safeExecuteInTheMiddle)(() => { |
@@ -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-restify"; | ||
//# 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-restify'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-restify", | ||
"version": "0.40.0", | ||
"version": "0.41.0", | ||
"description": "OpenTelemetry instrumentation for `restify` http web application framework", | ||
@@ -53,9 +53,9 @@ "main": "build/src/index.js", | ||
"@types/node": "18.6.5", | ||
"@types/restify": "4.3.10", | ||
"@types/semver": "7.5.3", | ||
"@types/restify": "4.3.12", | ||
"@types/semver": "7.5.8", | ||
"mocha": "7.2.0", | ||
"nyc": "15.1.0", | ||
"restify": "11.1.0", | ||
"rimraf": "5.0.5", | ||
"semver": "7.5.4", | ||
"rimraf": "5.0.10", | ||
"semver": "7.6.3", | ||
"test-all-versions": "^6.0.0", | ||
@@ -67,7 +67,7 @@ "ts-mocha": "10.0.0", | ||
"@opentelemetry/core": "^1.8.0", | ||
"@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-restify#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
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
57994
410
+ Added@opentelemetry/api-logs@0.53.0(transitive)
+ Added@opentelemetry/instrumentation@0.53.0(transitive)
- Removed@opentelemetry/api-logs@0.52.1(transitive)
- Removed@opentelemetry/instrumentation@0.52.1(transitive)