@opentelemetry/instrumentation-pg
Advanced tools
Comparing version 0.34.1 to 0.35.0
@@ -31,3 +31,3 @@ "use strict"; | ||
init() { | ||
const modulePG = new instrumentation_1.InstrumentationNodeModuleDefinition('pg', ['7.*', '8.*'], moduleExports => { | ||
const modulePG = new instrumentation_1.InstrumentationNodeModuleDefinition('pg', ['8.*'], moduleExports => { | ||
if ((0, instrumentation_1.isWrapped)(moduleExports.Client.prototype.query)) { | ||
@@ -34,0 +34,0 @@ this._unwrap(moduleExports.Client.prototype, 'query'); |
@@ -14,3 +14,2 @@ import type * as pgTypes from 'pg'; | ||
export declare type PgPoolCallback = (err: Error, client: any, done: (release?: any) => void) => void; | ||
export declare type PgErrorCallback = (err: Error) => void; | ||
export interface PgPoolOptionsParams { | ||
@@ -27,3 +26,3 @@ database: string; | ||
} | ||
export declare type PgClientConnect = (callback?: (err: Error) => void) => Promise<void> | void; | ||
export declare type PgClientConnect = (callback?: Function) => Promise<void> | void; | ||
//# sourceMappingURL=internal-types.d.ts.map |
import { Span, Tracer } from '@opentelemetry/api'; | ||
import { PgClientExtended, PostgresCallback, PgErrorCallback, PgPoolCallback, PgParsedConnectionParams } from './internal-types'; | ||
import { PgClientExtended, PostgresCallback, PgPoolCallback, PgParsedConnectionParams } from './internal-types'; | ||
import { PgInstrumentationConfig } from './types'; | ||
@@ -41,3 +41,3 @@ import type * as pgTypes from 'pg'; | ||
export declare function patchCallbackPGPool(span: Span, cb: PgPoolCallback): PgPoolCallback; | ||
export declare function patchClientConnectCallback(span: Span, cb: PgErrorCallback): PgErrorCallback; | ||
export declare function patchClientConnectCallback(span: Span, cb: Function): Function; | ||
export declare function addSqlCommenterComment(span: Span, query: string): string; | ||
@@ -44,0 +44,0 @@ /** |
@@ -170,3 +170,3 @@ "use strict"; | ||
span.end(); | ||
cb.call(this, err); | ||
cb.apply(this, arguments); | ||
}; | ||
@@ -173,0 +173,0 @@ } |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.34.1"; | ||
export declare const VERSION = "0.35.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.34.1'; | ||
exports.VERSION = '0.35.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-pg", | ||
"version": "0.34.1", | ||
"version": "0.35.0", | ||
"description": "OpenTelemetry postgres automatic instrumentation package.", | ||
@@ -70,3 +70,3 @@ "main": "build/src/index.js", | ||
"pg-pool": "3.4.1", | ||
"rimraf": "3.0.2", | ||
"rimraf": "4.2.0", | ||
"safe-stable-stringify": "^2.4.1", | ||
@@ -86,3 +86,3 @@ "sinon": "15.0.1", | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-pg#readme", | ||
"gitHead": "63e0fc9b6b862f74304abf0343c506a5bd415191" | ||
"gitHead": "32889bde9aa8f1f555a3d595c0bd93f611798fab" | ||
} |
@@ -20,3 +20,3 @@ # OpenTelemetry Postgres Instrumentation for Node.js | ||
- `>=7 <9` | ||
- `>=8 <9` | ||
@@ -23,0 +23,0 @@ ## Usage |
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
71801
794