We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90dccfd commit fca2db1Copy full SHA for fca2db1
plugins/node/opentelemetry-instrumentation-pg/src/utils.ts
@@ -255,7 +255,7 @@ export function patchCallback(
255
res: object
256
) {
257
if (err) {
258
- if (err.hasOwnProperty('code')) {
+ if (Object.prototype.hasOwnProperty.call(err, 'code')) {
259
attributes[ATTR_ERROR_TYPE] = (err as any)['code'];
260
}
261
0 commit comments