This repository was archived by the owner on Aug 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
# elastic-apm-http-client changelog
2
2
3
+ ## v11.0.4
4
+
5
+ - Update the default ` serverUrl ` to "http://127.0.0.1:8200 ". We no longer use
6
+ "localhost" to avoid ambiguity if localhost resolves to multiple addresses
7
+ (e.g. IPv4 and IPv6). APM server only listens on IPv4 by default.
8
+ (https://github.com/elastic/apm-agent-nodejs/pull/3049 )
9
+
3
10
## v11.0.3
4
11
5
12
- Prevent a possible tight loop in central config fetching.
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ HTTP client configuration:
82
82
identify itself as
83
83
- ` secretToken ` - The Elastic APM intake API secret token
84
84
- ` apiKey ` - Elastic APM API key
85
- - ` serverUrl ` - The APM Server URL (default: ` http://localhost :8200 ` )
85
+ - ` serverUrl ` - The APM Server URL (default: ` http://127.0.0.1 :8200 ` )
86
86
- ` headers ` - An object containing extra HTTP headers that should be
87
87
used when making HTTP requests to he APM Server
88
88
- ` rejectUnauthorized ` - Set to ` false ` if the client shouldn't verify
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ Client.prototype.config = function (opts) {
232
232
if ( ! this . _conf . size && this . _conf . size !== 0 ) this . _conf . size = 750 * 1024
233
233
if ( ! this . _conf . time && this . _conf . time !== 0 ) this . _conf . time = 10000
234
234
if ( ! this . _conf . serverTimeout && this . _conf . serverTimeout !== 0 ) this . _conf . serverTimeout = 15000
235
- if ( ! this . _conf . serverUrl ) this . _conf . serverUrl = 'http://localhost :8200'
235
+ if ( ! this . _conf . serverUrl ) this . _conf . serverUrl = 'http://127.0.0.1 :8200'
236
236
if ( ! this . _conf . hostname ) this . _conf . hostname = hostname
237
237
if ( ! this . _conf . environment ) this . _conf . environment = process . env . NODE_ENV || 'development'
238
238
if ( ! this . _conf . truncateKeywordsAt ) this . _conf . truncateKeywordsAt = 1024
@@ -987,7 +987,7 @@ function getChoppedStreamHandler (client, onerror) {
987
987
//
988
988
// The HTTP keep-alive agent will unref sockets when unused, and ref them
989
989
// during a request. Given that the normal makeIntakeRequest behaviour
990
- // is to keep a request open for up to 10s (`apiRequestTimeout `), we must
990
+ // is to keep a request open for up to 10s (`apiRequestTime `), we must
991
991
// manually unref the socket.
992
992
//
993
993
// The exception is when in a Lambda environment, where we *do* want to
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " elastic-apm-http-client" ,
3
- "version" : " 11.0.3 " ,
3
+ "version" : " 11.0.4 " ,
4
4
"description" : " A low-level HTTP client for communicating with the Elastic APM intake API" ,
5
5
"main" : " index.js" ,
6
6
"directories" : {
You can’t perform that action at this time.
0 commit comments