oneapm-sdk
v0.0.5
Published
SDK for oneapm.com
Downloads
2
Readme
oneapm-sdk
SDK for oneapm.com written in Node.js
About
This is for development usage only. Please do not use it in production.
Authentication
Provide the credentials as environment variables
ONEAPM_USERNAME
username/email
ONEAPM_PASSWORD
password in plain text :see_no_evil:
Url
ONEAPM_LOGIN_URL
default is https://user.oneapm.com/account/login.do
ONEAPM_BASE_URL
default is https://cloud.oneapm.com/
You should protect your username and password.
Express.js Middleware Usage
var express = require('express');
var path = require('path');
var app = express();
var oneapmMiddleware = require('oneapm-sdk').middleware;
app.use(oneapmMiddleware);
app.listen(8080);
Todos
- Error handling
- Auto reconnect after session expires
LICENSE
MIT
Do not do evil things with it, or your account may get banned.