Comments (11)
We can fairly easily proxy trace
for node such that it still writes to stderr, but the glimpse message has an info or a warning. This is a small, low-risk change.
from home.
@lostintangent, I'm a bit confused as to what the issue you're reporting is.
Is it that this message isn't actually an "Error" but it being reported as such?
from home.
That screenshot is showing the result of me calling console.trace
within an app. The message is the stack that was generated as a result, but Glimpse seems to be categorizing the log as an error, which it isn't. Apologies for the ambiguity, I just added repro steps to the bug to hopefully make this clearer.
from home.
Oh! I see, okay. Thanks for the clarification.
from home.
See https://github.com/nodejs/node/blob/master/lib/console.js#L82_L90. Console.trace(...)
writes output to through Console.error(...)
. IIRC, we're not proxying trace.
from home.
Okay, it looks like the issue here is a difference in the implementation of the/a spec.
The DevTools Working Group says that trace
is "equivalent to console.log
except that it also adds stack trace from the point where the method was called". This is in line with @lostintangent's expectation. However, Node's documentation states that calls to .trace
should be written to stderr
. (That's true for both 4.5 LTS and 6.6.)
I do find Node's implementation to be a bit funny, but we should probably stick to their definition until we have a bit more user feedback.
That said, calls to console.trace()
in the browser should have the behavior that @lostintangent described. We need to test to make sure this is the case. @newtonjain, please make sure this case is covered in your related work.
from home.
I like @mike-kaufman's suggestion, and think that we should make sure the Glimpse message has an Info Debug tag on it.
from home.
console.trace()
calls from Node are still showing up as Errors. They should be marked as Debug.
from home.
Addressed with PR https://github.com/Glimpse/Glimpse.Node/pull/633.
from home.
👌
I did find a related issue while testing this (https://github.com/Glimpse/Glimpse.Browser.Agent/issues/86), but this looks good.
from home.
This is now available in Glimpse for Node 0.15.2. Please see our announcement issue for more information.
from home.
Related Issues (20)
- [Hapi] Support roadmap HOT 7
- Support being initialized after imports HOT 4
- [Loopback] support HOT 6
- Glimpse breaks AWS-SDK S3 calls HOT 4
- Lost context reported using socket.io and/or sticky-session HOT 1
- TypeError: Cannot assign to read only property 'createGzip' of object '#<Object>' HOT 3
- Glimpse (Warning OlderUnsupportedPackageRequired): Glimpse does not support version 2.3.3 of debug. HOT 4
- Deep link to https://github.com/Glimpse/Home#package--version-support is broken HOT 1
- TypeError: Cannot assign to read only property 'createGzip' of object '#<Object>' HOT 3
- Use Glimpse with separate frontend and backend procceses? HOT 3
- Initializing Glimpse in projects break aws-sdk S3 HOT 4
- [Home repo]: update screenshot to reflect current UIs HOT 1
- Request entity too large - config setting doesn't help HOT 9
- Glimpse crashes acquiring mac address HOT 5
- TypeError: Converting circular structure to JSON at MessageConverter.js:38:43 HOT 1
- create-react-app and Glimpse cause can't resolve module glimpse-agent-node/release
- [restify] support?
- fatal error - ""could not find associated master data
- How can I get Glimpse to work with Vue.js/Nuxt.js ?
- support for mongodb version 3
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 home.