Comments (4)
I've got this same issue with pg-cursor, I would appreciate either a fix, or if someone can tell me to disable the pg patching (but keep all other functionality).
I forgot to say, I'm using applicationinsights 1.8.5, I've had no problems up to today when I've updated all of my dependencies, when that failed I reinstalled the old deps and got the same issue, so not sure if a dependency somewhere upstream has changed, but the issue seems to stem from here (please correct me if I'm wrong).
Edit:
I've found a temporary solution,
Installing pg under a different name (pg-dup), and using this when I want to use a cursor:
// const { Pool } = require('pg')
const { Pool } = require('pg-dup')
const Cursor = require('pg-cursor')
My package.json dependencies:
"pg": "8.3.0",
"pg-cursor": "2.3.0",
"pg-dup": "npm:[email protected]"
from node-diagnostic-channel.
Thank you, I couldn't see that documented anywhere.
Is there any plan to add support for pg-cursor? Or will I have to permanently disable patching pg?
Either way I'm glad I've got a solution, it'll just be good to know :)
from node-diagnostic-channel.
Hi is there any updates to this? We have intermittently turned off the patching but that's causing our pg logs also not showing up in the App insights. Is there a Permanent solution planned? @markwolff I see the PR is also not merged yet.
from node-diagnostic-channel.
You can disable patching for a module via environment variable
APPLICATION_INSIGHTS_NO_PATCH_MODULES=pg
from node-diagnostic-channel.
Related Issues (20)
- diagnostic-channel-publishers - RangeError: Maximum call stack size exceeded HOT 3
- Winston: 'Cannot read property `level` of undefined' when Logger created without arguments HOT 1
- Support for v4 of mongodb driver HOT 4
- Dependancy request warnings in webpack HOT 1
- Monkey-patch for Winston3 publishes too much
- Winston: "Cannot read property 'levels' of undefined" when Logger created without arguments HOT 1
- support for pino.js logger HOT 3
- is this project still alive? HOT 1
- Support for oracledb
- Console subs using winston always trackTrace as info HOT 5
- Support for mongo 4 HOT 1
- Source maps is missed in npm package
- Configuration to expose the arguments for `mongodb` methods? HOT 1
- Module not found: Can't resolve '@opentelemetry/tracing' HOT 5
- diagnostic-channel-publisher to support "pg-copy-streams" HOT 1
- Making this project a standard
- Supporting for `debug` npmjs library HOT 1
- tedious channel to support mssql HOT 2
- Support for orientdb
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-diagnostic-channel.