elastic-apm-http-client
Advanced tools
Comparing version 10.1.0 to 10.2.0
# elastic-apm-http-client changelog | ||
## v10.2.0 | ||
- The client will no longer append data to the configured `userAgent` string. | ||
Before this it would append " elastic-apm-http-client/$ver node/$ver". This | ||
is to support [the APM agents spec for | ||
User-Agent](https://github.com/elastic/apm/blob/master/specs/agents/transport.md#user-agent). | ||
## v10.1.0 | ||
@@ -4,0 +12,0 @@ |
@@ -24,3 +24,2 @@ 'use strict' | ||
const truncate = require('./lib/truncate') | ||
const pkg = require('./package') | ||
@@ -1045,3 +1044,3 @@ module.exports = Client | ||
headers.Accept = 'application/json' | ||
headers['User-Agent'] = `${opts.userAgent} ${pkg.name}/${pkg.version} ${process.release.name}/${process.versions.node}` | ||
headers['User-Agent'] = opts.userAgent | ||
return Object.assign(headers, opts.headers) | ||
@@ -1048,0 +1047,0 @@ } |
{ | ||
"name": "elastic-apm-http-client", | ||
"version": "10.1.0", | ||
"version": "10.2.0", | ||
"description": "A low-level HTTP client for communicating with the Elastic APM intake API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -82,3 +82,3 @@ # elastic-apm-http-client | ||
- `userAgent` - (required) The HTTP user agent that your module should | ||
identify it self as | ||
identify itself as | ||
- `secretToken` - The Elastic APM intake API secret token | ||
@@ -85,0 +85,0 @@ - `apiKey` - Elastic APM API key |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79289
1552