@opentelemetry/instrumentation
Advanced tools
Comparing version
@@ -25,3 +25,9 @@ import { TracerProvider, Tracer } from '@opentelemetry/api'; | ||
setMeterProvider(meterProvider: MeterProvider): void; | ||
getConfig(): types.InstrumentationConfig; | ||
/** | ||
* Sets InstrumentationConfig to this plugin | ||
* @param InstrumentationConfig | ||
*/ | ||
setConfig(config?: types.InstrumentationConfig): void; | ||
/** | ||
* Sets TraceProvider to this plugin | ||
@@ -28,0 +34,0 @@ * @param tracerProvider |
@@ -65,3 +65,15 @@ /* | ||
}; | ||
/* Returns InstrumentationConfig */ | ||
InstrumentationAbstract.prototype.getConfig = function () { | ||
return this._config; | ||
}; | ||
/** | ||
* Sets InstrumentationConfig to this plugin | ||
* @param InstrumentationConfig | ||
*/ | ||
InstrumentationAbstract.prototype.setConfig = function (config) { | ||
if (config === void 0) { config = {}; } | ||
this._config = Object.assign({}, config); | ||
}; | ||
/** | ||
* Sets TraceProvider to this plugin | ||
@@ -68,0 +80,0 @@ * @param tracerProvider |
@@ -69,2 +69,3 @@ /* | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
var version = require(path.join(baseDir, 'package.json')).version; | ||
@@ -71,0 +72,0 @@ module.moduleVersion = version; |
@@ -23,2 +23,6 @@ import { TracerProvider } from '@opentelemetry/api'; | ||
setMeterProvider(meterProvider: MeterProvider): void; | ||
/** Method to set instrumentation config */ | ||
setConfig(config: InstrumentationConfig): void; | ||
/** Method to get instrumentation config */ | ||
getConfig(): InstrumentationConfig; | ||
/** | ||
@@ -25,0 +29,0 @@ * Contains all supported versions. |
@@ -25,3 +25,9 @@ import { TracerProvider, Tracer } from '@opentelemetry/api'; | ||
setMeterProvider(meterProvider: MeterProvider): void; | ||
getConfig(): types.InstrumentationConfig; | ||
/** | ||
* Sets InstrumentationConfig to this plugin | ||
* @param InstrumentationConfig | ||
*/ | ||
setConfig(config?: types.InstrumentationConfig): void; | ||
/** | ||
* Sets TraceProvider to this plugin | ||
@@ -28,0 +34,0 @@ * @param tracerProvider |
@@ -52,3 +52,14 @@ "use strict"; | ||
} | ||
/* Returns InstrumentationConfig */ | ||
getConfig() { | ||
return this._config; | ||
} | ||
/** | ||
* Sets InstrumentationConfig to this plugin | ||
* @param InstrumentationConfig | ||
*/ | ||
setConfig(config = {}) { | ||
this._config = Object.assign({}, config); | ||
} | ||
/** | ||
* Sets TraceProvider to this plugin | ||
@@ -55,0 +66,0 @@ * @param tracerProvider |
@@ -54,2 +54,3 @@ "use strict"; | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const version = require(path.join(baseDir, 'package.json')).version; | ||
@@ -56,0 +57,0 @@ module.moduleVersion = version; |
@@ -23,2 +23,6 @@ import { TracerProvider } from '@opentelemetry/api'; | ||
setMeterProvider(meterProvider: MeterProvider): void; | ||
/** Method to set instrumentation config */ | ||
setConfig(config: InstrumentationConfig): void; | ||
/** Method to get instrumentation config */ | ||
getConfig(): InstrumentationConfig; | ||
/** | ||
@@ -25,0 +29,0 @@ * Contains all supported versions. |
{ | ||
"name": "@opentelemetry/instrumentation", | ||
"version": "0.19.1-alpha.40+f077df3f", | ||
"version": "0.19.1-alpha.41+7fa4ff70", | ||
"description": "Base class for node which OpenTelemetry instrumentation modules extend", | ||
@@ -68,10 +68,10 @@ "author": "OpenTelemetry Authors", | ||
"peerDependencies": { | ||
"@opentelemetry/api": "^1.0.0-rc.0" | ||
"@opentelemetry/api": "^0.20.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.13.16", | ||
"@opentelemetry/api": "^1.0.0-rc.0", | ||
"@babel/core": "7.14.0", | ||
"@opentelemetry/api": "^0.20.0", | ||
"@types/mocha": "8.2.2", | ||
"@types/node": "14.14.41", | ||
"@types/semver": "7.3.4", | ||
"@types/node": "14.14.43", | ||
"@types/semver": "7.3.5", | ||
"@types/shimmer": "1.0.1", | ||
@@ -83,3 +83,2 @@ "@types/sinon": "9.0.11", | ||
"cpx": "1.5.0", | ||
"gts": "3.1.0", | ||
"istanbul-instrumenter-loader": "3.0.1", | ||
@@ -91,3 +90,3 @@ "karma": "5.2.3", | ||
"karma-spec-reporter": "0.0.32", | ||
"karma-webpack": "5.0.0", | ||
"karma-webpack": "4.0.2", | ||
"mocha": "7.2.0", | ||
@@ -97,3 +96,3 @@ "nyc": "15.1.0", | ||
"sinon": "10.0.0", | ||
"ts-loader": "8.1.0", | ||
"ts-loader": "8.2.0", | ||
"ts-mocha": "8.0.0", | ||
@@ -106,3 +105,3 @@ "ts-node": "9.1.1", | ||
}, | ||
"gitHead": "f077df3f14414f8587282bdf54dff703d137d4b1" | ||
"gitHead": "7fa4ff70d1aad5875cb14c6bff99c838228447bb" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
124510
1.65%29
-3.33%1853
2.49%