Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elastic-apm-http-client

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elastic-apm-http-client - npm Package Compare versions

Comparing version 9.0.0 to 9.1.0

1

index.js

@@ -129,2 +129,3 @@ 'use strict'

if (!this._conf.truncateStringsAt) this._conf.truncateStringsAt = 1024
if (!this._conf.truncateCustomKeysAt) this._conf.truncateCustomKeysAt = 1024
if (!this._conf.truncateQueriesAt) this._conf.truncateQueriesAt = 10000

@@ -131,0 +132,0 @@ if (!this._conf.bufferWindowTime) this._conf.bufferWindowTime = 20

@@ -106,3 +106,3 @@ 'use strict'

function truncSpan (span, opts) {
const result = breadthFilter(span, {
let result = breadthFilter(span, {
onArray,

@@ -137,2 +137,18 @@ onObject,

result = truncateCustomKeys(
result,
opts.truncateCustomKeysAt,
[
'name',
'type',
'id',
'trace_id',
'parent_id',
'transaction_id',
'subtype',
'action',
'context'
]
)
return Object.assign({

@@ -289,1 +305,18 @@ name: 'undefined',

}
function truncateCustomKeys (value, max, keywords) {
if (typeof value !== 'object') {
return value
}
const result = value
const keys = Object.keys(result)
const truncatedKeys = keys.map(k => keywords.includes(k) ? k : truncate(k, max))
for (const [index, k] of keys.entries()) {
const value = result[k]
delete result[k]
const newKey = truncatedKeys[index]
result[newKey] = truncateCustomKeys(value, max, keywords)
}
return result
}

2

package.json
{
"name": "elastic-apm-http-client",
"version": "9.0.0",
"version": "9.1.0",
"description": "A low-level HTTP client for communicating with the Elastic APM intake API",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc