Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including zetta-volos-analytics with all npm packages installed. Try it out:

var zettaVolosAnalytics = require("zetta-volos-analytics")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

zetta-volos-analytics v0.1.0

An extension for Zetta to allow analytics via volos.

zetta-volos-analytics

An extension for Zetta to allow analytics via volos.

Install

npm install zetta-volos-analytics

Example

var zetta = require('zetta');
var AnalyticsExtension = require('zetta-volos-analytics');
var inMemoryAnalytics = require('volos-analytics-memory');

var options = {
  bufferSize: 3,
  flushInterval: 1000,
  batchSize: 3
};

var analytics = inMemoryAnalytics.create(options);

analytics.spi.on('makeRecord', console.log);

zetta()
  .use(AnalyticsExtension(analytics))
  .listen(3000);

License

MIT

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free