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
1
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 2.1.1 to 3.0.0

11

index.js
'use strict'
var http = require('http')
var parseUrl = require('url').parse
var zlib = require('zlib')

@@ -20,6 +21,8 @@ var stringify = require('fast-safe-stringify')

var url = parseUrl(opts.serverUrl || 'http://localhost:8080')
this._api = {
host: opts.apiHost || 'localhost',
port: opts.apiPort || 8080,
transport: opts.apiHttps ? require('https') : http,
hostname: url.hostname,
port: url.port,
transport: url.protocol === 'https:' ? require('https') : http,
path: '/v1/'

@@ -46,3 +49,3 @@ }

method: 'POST',
hostname: self._api.host,
hostname: self._api.hostname,
port: self._api.port,

@@ -49,0 +52,0 @@ path: self._api.path + endpoint,

{
"name": "elastic-apm-http-client",
"version": "2.1.1",
"version": "3.0.0",
"description": "A low-level HTTP client for communicating with the Elastic APM intake API",

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

"coordinates": [
55.6810724,
12.5644622
55.6809800,
12.5641450
]
}

@@ -12,5 +12,5 @@ # elastic-apm-http-client

If you are looking to use Opbeat in your app or website, you'd most
likely want to check out [the official Opbeat module for
Node.js](https://github.com/opbeat/opbeat-node) instead.
If you are looking to use Elastic APM in your app or website, you'd most
likely want to check out [the official Elastic APM agent for
Node.js](https://github.com/elastic/apm-agent-nodejs) instead.

@@ -45,7 +45,3 @@ If you are looking for the version of this module that supports the

- `apiHost` - The hostname of the Elastic APM intake API (default:
`localhost`)
- `apiPort` - The port of the Elastic APM intake API (default: `8080`)
- `apiHttps` - Toggle http/https when communicating with the Elastic APM
intake API (default: `false`)
- `serverUrl` - The APM Server URL (default: `http://localhost:8080`)
- `userAgent` - The HTTP user agent that your module should identify it

@@ -52,0 +48,0 @@ self with

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

userAgent: 'test',
apiPort: server.address().port
serverUrl: 'http://localhost:' + server.address().port
}

@@ -124,0 +124,0 @@

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