Comments (7)
As a follow-on, I'll edit my opening comment for this ticket with a list of things I come up with as I encounter them.
from home.
I'm really dying to see full hapi.js
support w/ @glimpse/glimpse
. I think hapi.js
's configuration-based approach along with it's plugin-registration system would allow glimpse
to display a serious amount of useful information if glimpse
can instrument the methods defined on the hapi.js
server instance.
I don't know how glimpse
works w/ exactly but perhaps the following information can help with progress? Sorry if I seem arrogant, inconsiderate, or impatient regarding this issue. I just see a lot of potential using glimpse
w/ hapi.js
versus express.js
, mostly because hapi.js
has a lot more metadata to work with than express.js
.
- Support tracing
server-methods
calls added by plugins- Server-methods are added via
server.method({name: String, method: Function, options: Object})
- Server-methods are added via
- Support showing metadata of plugins used in hapi.js server such as name, version, dependencies, plugin-level options, server-methods registered, server-decorations added, properties exposed via
server.expose
, routes registered, and handlers registered by plugin.- Each
hapi.js
plugin exports an object with
- Each
// pkgName.js hapi.js plugin
const internals = module.exports = {};
internals.register = (server, options, next) => { ... }
internals.register.attributes = {
name: 'pkgName',
version: '0.0.1',
dependencies: ['blipp']
}
// Plugins are "registered" w/ server instance via
server.register({
register: require('pkgName'),
options: { ... }
})
- Show log data emitted by "logging-events" of
hapi.js
server when request sent to a route.hapi.js
server instance has aserver.on(evtName, callback)
that can add listeners for logging events
from home.
I don't know how Glimpse does tracing but just general info about mysql, redis, ... query timing with query info would be very useful.
I guess if you do some patching you could do plugin initialization timings as well.
Just in general whatever you expose of express, expose the same thing from hapi. Not sure if there is a list somewhere, I could help map the express stuff to hapi if you want.
And ofc the things stated above are 👌
from home.
Super excited to see Glimpse show love to the node.js
community. I can see Glimpse being a super-useful tool during development just like it is in ASP.net. Thank you to the Glimpse team.
- Support tracing
server-methods
(and thehapi.js
plugins that registered them) executed when request is made tohapi.js
- Support showing metadata of plugins used in hapi.js server such as name, version, dependencies, plugin-level options, server-methods registered, server-decorations added, properties exposed via
server.expose
, routes registered, and handlers registered by plugin. - Show log data emitted by "logging-events" of
hapi.js
server when request sent to a route.
from home.
We have been having a discussion around HAPI support here - #95. As of release of 0.20.9, we should be working with Hapi now... the only thing that you won't get is middleware insights. Its possible that we can light middleware but we are trying to understand more about what Hapi users would find really useful. Do you have any thoughts of what would be most valuable?
from home.
Ah yes, so it does appear to be working, I was making the mistake of not initializing glimpse before my first hapi import. That's one item that I might suggest be improved if possible, I'll open a separate ticket for it.
Specific to hapi though, I'll spend some time with things although I suspect if you run down the feature list of what hapi as a framework offers, there may be more worth surfacing.
from home.
This is great! Thanks @kizzlebot @atrauzzi
from home.
Related Issues (20)
- 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.