@opentelemetry/instrumentation-pg
Advanced tools
Comparing version 0.15.0 to 0.16.0
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.15.0"; | ||
export declare const VERSION = "0.16.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.15.0'; | ||
exports.VERSION = '0.16.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-pg", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"description": "OpenTelemetry postgres automatic instrumentation package.", | ||
@@ -50,6 +50,6 @@ "main": "build/src/index.js", | ||
"devDependencies": { | ||
"@opentelemetry/context-async-hooks": "0.18.2", | ||
"@opentelemetry/node": "0.18.2", | ||
"@opentelemetry/test-utils": "^0.15.0", | ||
"@opentelemetry/tracing": "0.18.2", | ||
"@opentelemetry/context-async-hooks": "0.19.0", | ||
"@opentelemetry/node": "0.19.0", | ||
"@opentelemetry/test-utils": "^0.16.0", | ||
"@opentelemetry/tracing": "0.19.0", | ||
"@types/mocha": "7.0.2", | ||
@@ -68,3 +68,2 @@ "@types/node": "14.0.27", | ||
"ts-mocha": "8.0.0", | ||
"ts-node": "9.0.0", | ||
"tslint-consistent-codestyle": "1.16.0", | ||
@@ -75,6 +74,6 @@ "tslint-microsoft-contrib": "6.2.0", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.18.0", | ||
"@opentelemetry/instrumentation": "^0.18.0" | ||
"@opentelemetry/api": "^1.0.0-rc.0", | ||
"@opentelemetry/instrumentation": "^0.19.0" | ||
}, | ||
"gitHead": "a2de7757da17a026433f0735035f65f7f88f1666" | ||
"gitHead": "5ecccc916e8f4eecaf6629a0350fc672edcba1be" | ||
} |
@@ -23,32 +23,5 @@ # OpenTelemetry Postgres Instrumentation for Node.js | ||
To load all of the [default supported plugins](https://github.com/open-telemetry/opentelemetry-js#plugins), use the below approach. Each plugin is only loaded when the module that it patches is loaded; in other words, there is no computational overhead for listing plugins for unused modules. | ||
```js | ||
const { NodeTracerProvider } = require('@opentelemetry/node'); | ||
const { registerInstrumentations } = require('@opentelemetry/instrumentation'); | ||
const provider = new NodeTracerProvider(); | ||
provider.register(); | ||
registerInstrumentations({ | ||
tracerProvider: provider, | ||
}); | ||
``` | ||
If instead you would just want to load a specific instrumentation only (**pg** in this case); | ||
```js | ||
const { NodeTracerProvider } = require('@opentelemetry/node'); | ||
const { PgInstrumentation } = require('@opentelemetry/instrumentation-pg'); | ||
const provider = new NodeTracerProvider(); | ||
provider.register(); | ||
const pgInstrumentation = new PgInstrumentation(); | ||
pgInstrumentation.setTracerProvider(provider); | ||
``` | ||
You can combine loading default plugins and PgInstrumentation at the same: | ||
```js | ||
const { NodeTracerProvider } = require('@opentelemetry/node'); | ||
const { PgInstrumentation } = require('@opentelemetry/instrumentation-pg'); | ||
const { registerInstrumentations } = require('@opentelemetry/instrumentation'); | ||
@@ -55,0 +28,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
20
0
40898
73
+ Added@opentelemetry/api@1.9.0(transitive)
+ Added@opentelemetry/api-metrics@0.19.0(transitive)
+ Added@opentelemetry/instrumentation@0.19.0(transitive)
- Removed@opentelemetry/api@0.18.1(transitive)
- Removed@opentelemetry/api-metrics@0.18.2(transitive)
- Removed@opentelemetry/instrumentation@0.18.2(transitive)