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 7.2.2 to 7.3.0

bleh.js

31

index.js

@@ -110,2 +110,4 @@ 'use strict'

this._conf.globalLabels = normalizeGlobalLabels(this._conf.globalLabels)
const missing = requiredOpts.filter(name => !this._conf[name])

@@ -478,3 +480,5 @@ if (missing.length > 0) throw new Error('Missing required option(s): ' + missing.join(', '))

version: opts.agentVersion
}
},
framework: undefined,
version: undefined
},

@@ -490,4 +494,7 @@ process: {

architecture: process.arch,
platform: process.platform
}
platform: process.platform,
container: undefined,
kubernetes: undefined
},
labels: opts.globalLabels
}

@@ -560,1 +567,19 @@

}
function oneOf (value, list) {
return list.indexOf(value) >= 0
}
function normalizeGlobalLabels (labels) {
if (!labels) return
const result = {}
for (let key of Object.keys(labels)) {
const value = labels[key]
result[key] = oneOf(typeof value, ['string', 'number', 'boolean'])
? value
: value.toString()
}
return result
}

2

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

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

@@ -75,2 +75,3 @@ # elastic-apm-http-client

- `kubernetesPodUID` - Kubernetes pod id, if not given will be parsed from `/proc/self/cgroup`
- `globalLabels` - An object of key/value pairs to use to label all data reported (only applied when using APM Server 7.1+)

@@ -77,0 +78,0 @@ HTTP client configuration:

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