Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-pg

Package Overview
Dependencies
Maintainers
4
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-pg - npm Package Compare versions

Comparing version 0.15.0 to 0.16.0

2

build/src/version.d.ts

@@ -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 @@

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