Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bricks-analytics

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bricks-analytics

Analytics and status package for bricks.js

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

bricks-analytics

bricks-analytics adds basic route analytics and status information about the health of the http server.

Installing

npm install bricks-analytics

Usage

var analytics = require('bricks-analytics');

appServer.addRoute(".+", analytics, { section: "pre", top: true, keep: 100 /* default 10 */ });

Analytics are then available via two JSON requests:

$ curl http://host.name/bricks-status/analytics.json
$ curl http://host.name/bricks-status/status.json

or via an html page:

http://host.name/bricks-status/analytics.html

Methodology

bricks-analytics hooks into the call stack during and after execution. Given that bricks uses a stack-based routing system, adjustments to start times happen upon request. Also, given that a route can finish before the call stack is fully unwound, actual execution time could be less than the sum of each route.

Keywords

FAQs

Package last updated on 01 Dec 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc