elastic-apm-utils
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "elastic-apm-utils", | ||
"description": "Utilities for Elastic APM", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"github": "https://github.com/MartinKolarik/elastic-apm-utils/", | ||
@@ -6,0 +6,0 @@ "main": "./src/index.js", |
@@ -5,3 +5,3 @@ const _ = require('lodash'); | ||
module.exports.apm = { | ||
filter ({ keepRequest = [ 'referer', 'user-agent' ], keepResponse = [], keepSocket = [] }) { | ||
filter ({ keepRequest = [ 'referer', 'user-agent' ], keepResponse = [], keepSocket = [] } = {}) { | ||
return (payload) => { | ||
@@ -8,0 +8,0 @@ let items = payload.transactions || []; |
7304