honeycombio/libhoney-js

Name: libhoney-js

Owner: Honeycomb

Description: Javascript library for sending data to Honeycomb

Created: 2016-05-17 16:48:48.0

Updated: 2017-08-14 04:56:34.0

Pushed: 2017-08-14 20:51:00.0

Homepage:

Size: 391

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

libhoney Build Status npm version

A node module for interacting with Honeycomb. (For more information, see the documentation and JavaScript SDK guide.)

NOT for use in browser-side JavaScript applications. Write keys are your auth tokens for sending data to Honeycomb and should be kept secure – they're not per-site keys. Don't leave yourself vulnerable to malicious users.

Installation
install libhoney --save-dev
Documentation

An API reference is available at https://doc.esdoc.org/github.com/honeycombio/libhoney-js/

Example

Honeycomb can calculate all sorts of statistics, so send the values you care about and let us crunch the averages, percentiles, lower/upper bounds, cardinality – whatever you want – for you.

rt Libhoney from 'libhoney';

hny = new Libhoney({
iteKey: "YOUR_WRITE_KEY",
taset: "honeycomb-js-example"


sendNow({
ssage: "Test Honeycomb event",
ndomFloat: Math.random(),
stname: os.hostname(),
voriteColor: "chartreuse"

For more, see the examples/ directory for sample code demonstrating how to use events, builders, fields, and dynamic fields in an Express app.

Contributions

Features, bug fixes and other changes to libhoney are gladly accepted. Please open issues or a pull request with your change. Remember to add your name to the CONTRIBUTORS file!

All contributions will be released under the Apache License 2.0.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.