{"id":21700401,"url":"https://github.com/articulate/sox-newrelic","last_synced_at":"2026-05-06T22:35:07.254Z","repository":{"id":57098965,"uuid":"151465816","full_name":"articulate/sox-newrelic","owner":"articulate","description":"NewRelic integration for @articulate/sox","archived":false,"fork":false,"pushed_at":"2018-10-03T20:51:02.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":58,"default_branch":"master","last_synced_at":"2024-04-24T17:58:29.467Z","etag":null,"topics":["javascript","newrelic","socket-io"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/articulate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-03T19:07:29.000Z","updated_at":"2021-02-11T18:42:35.000Z","dependencies_parsed_at":"2022-08-20T17:31:34.410Z","dependency_job_id":null,"html_url":"https://github.com/articulate/sox-newrelic","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Fsox-newrelic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Fsox-newrelic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Fsox-newrelic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/articulate%2Fsox-newrelic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/articulate","download_url":"https://codeload.github.com/articulate/sox-newrelic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244644931,"owners_count":20486891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","newrelic","socket-io"],"created_at":"2024-11-25T20:14:13.666Z","updated_at":"2026-05-06T22:35:07.211Z","avatar_url":"https://github.com/articulate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @articulate/sox-newrelic\n[![@articulate/sox-newrelic](https://img.shields.io/npm/v/@articulate/sox-newrelic.svg)](https://www.npmjs.com/package/@articulate/sox-newrelic)\n[![Build Status](https://travis-ci.org/articulate/sox-newrelic.svg?branch=master)](https://travis-ci.org/articulate/sox-newrelic)\n[![Coverage Status](https://coveralls.io/repos/github/articulate/sox-newrelic/badge.svg?branch=master)](https://coveralls.io/github/articulate/sox-newrelic?branch=master)\n\nNewRelic integration for [`@articulate/sox`](https://github.com/articulate/sox).\n\n## Usage\n\n```haskell\ninstrument :: NewRelic -\u003e (Action -\u003e Promise Action) -\u003e Action -\u003e Promise Action\n```\n\nWraps a top-level action handler to instrument for NewRelic.\n\n```js\nconst instrument = require('@articulate/sox-newrelic')\nconst io = require('socket.io')\nconst { mount } = require('@articulate/sox')\nconst newrelic = require('newrelic')\nconst { tap } = require('ramda')\n\nconst handler = require('./handler')\n\nconst app =\n  instrument(newrelic, handler)\n\nconst sockets = server =\u003e\n  io(server).use(mount({ app }))\n\nmodule.exports = tap(server)\n```\n\nIf your handlers are split into modules, `instrument` is curried to make the following possible:\n\n```js\nconst { compose, mergeAll, tap, values } = require('ramda')\nconst instrument = require('@articulate/sox-newrelic')\nconst { handle, mount } = require('@articulate/sox')\nconst io = require('socket.io')\nconst newrelic = require('newrelic')\n\nconst handlers = require('require-dir')()\n\nconst app =\n  compose(instrument(newrelic), handle, mergeAll, values)(handlers)\n\nconst sockets = server =\u003e\n  io(server).use(mount({ app }))\n\nmodule.exports = tap(server)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farticulate%2Fsox-newrelic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farticulate%2Fsox-newrelic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farticulate%2Fsox-newrelic/lists"}