Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
elastic-apm-utils
Advanced tools
Utilities for Elastic APM
$ npm install elastic-apm-utils
Filters spans.
apmClient.addSpanFilter(apmUtils.apm.spanFilter({
// remove spans shorter than this value in ms
filterShorterThan: 10,
}));
Filters request
and response
properties.
apmClient.transactionFilter(apmUtils.apm.transactionFilter({
// completely remove non-sampled transactions
// (otherwise those are still sent to APM, just with less details)
filterNotSampled: true,
// list of request headers to keep, optional
keepRequest: [ 'referer', 'user-agent' ],
// list of response headers to keep, optional
keepResponse: [],
// list of socket properties to keep, optional
keepSocket: [],
}));
Returns an express middleware.
server.use(apmUtils.express.middleware(apmCient, {
// set remote IP address as a tag to allow filtering in Kibana
setAddress: true,
// set request origin / referrer hostname as a tag to allow filtering in Kibana
setOrigin: true,
}));
Returns a koa middleware.
router.use(apmUtils.koa.middleware(apmCient, {
// a prefix for all transaction names, only used if setRouteName = true
prefix: '',
// set remote IP address as a tag to allow filtering in Kibana
setAddress: true,
// set request origin / referrer hostname as a tag to allow filtering in Kibana
setOrigin: true,
// more accurate route names when using koa-router
setRouteName: true,
}));
Copyright (c) 2018 Martin Kolárik. Released under the MIT license.
FAQs
Utilities for Elastic APM
We found that elastic-apm-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.