开发者社区> 镜像站> NPM> @adobe/helix-epsagon
@adobe/helix-epsagon
Helix Epsagon Support
Last updated 20 days ago by trieloff .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @adobe/helix-epsagon 
SYNC missed versions from official npm registry.

Helix Epsagon Support

Helper library to easily enable epsagon support for openwhisk actions.

Status

codecov CircleCI GitHub license GitHub issues LGTM Code Quality Grade: JavaScript semantic-release

API Reference

epsagon ⇒ ActionFunction

Wrap function that returns an OpenWhisk function is automatically instrumented with epsagon, if the EPSAGON_TOKEN action parameter is present.

Usage:

const { wrap } = require('@adobe/openwhisk-action-utils');
const { epsagon } = require('@adobe/helix-epsagon');

async function main(params) {
  //…my action code…
}

module.exports.main = wrap(main)
  .with(epsagon);

Returns: ActionFunction - a new function with the same signature as your original main function

Param Type Default Description
action ActionFunction Original OpenWhisk action main function
[opts] EpsagonOptions Additional epsagon options
[opts.sendTimeout] number 2000 Time in milliseconds after which the request to the epsagon infrastructure times out.
[opts.token_param] string "EPSAGON_TOKEN" The name of the action parameter that contains the epsagon token.
[opts.appName] string "Helix Service" The name of this application.
[opts.ignoredKeys] Array.<RegExp, string> [/^[A-Z][A-Z0-9_]+$/, /^_ow.*/, 'authorization', 'request_body'] Array of patterns for parameter keys to ignore in traces.
[opts.urlPatternsToIgnore] Array.<RegExp, string> ['api.coralogix.com'] Array of patterns for urls to ignore in traces.
[opts.disableHttpResponseBodyCapture] boolean true Disables response capture.

Current Tags

  • 1.5.4                                ...           latest (20 days ago)

40 Versions

  • 1.5.4                                ...           20 days ago
  • 1.5.3                                ...           2 months ago
  • 1.5.2                                ...           3 months ago
  • 1.5.1                                ...           3 months ago
  • 1.5.0                                ...           3 months ago
  • 1.4.0                                ...           3 months ago
  • 1.3.13                                ...           5 months ago
  • 1.3.12                                ...           6 months ago
  • 1.3.11                                ...           6 months ago
  • 1.3.10                                ...           6 months ago
  • 1.3.9                                ...           6 months ago
  • 1.3.8                                ...           6 months ago
  • 1.3.7                                ...           6 months ago
  • 1.3.6                                ...           6 months ago
  • 1.3.5                                ...           6 months ago
  • 1.3.4                                ...           6 months ago
  • 1.3.3                                ...           6 months ago
  • 1.3.2                                ...           6 months ago
  • 1.3.1                                ...           6 months ago
  • 1.3.0                                ...           6 months ago
  • 1.2.2                                ...           7 months ago
  • 1.2.1                                ...           7 months ago
  • 1.2.0                                ...           8 months ago
  • 1.1.14                                ...           8 months ago
  • 1.1.13                                ...           8 months ago
  • 1.1.12                                ...           8 months ago
  • 1.1.11                                ...           8 months ago
  • 1.1.10                                ...           8 months ago
  • 1.1.9                                ...           8 months ago
  • 1.1.8                                ...           8 months ago
  • 1.1.7                                ...           9 months ago
  • 1.1.6                                ...           9 months ago
  • 1.1.5                                ...           9 months ago
  • 1.1.4                                ...           9 months ago
  • 1.1.3                                ...           10 months ago
  • 1.1.2                                ...           10 months ago
  • 1.1.1                                ...           10 months ago
  • 1.1.0                                ...           10 months ago
  • 1.0.1                                ...           10 months ago
  • 1.0.0                                ...           10 months ago