elastic-apm-http-client
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -26,3 +26,3 @@ 'use strict' | ||
transport: opts.apiHttps ? require('https') : http, | ||
path: '/v1/' | ||
path: '/' | ||
} | ||
@@ -29,0 +29,0 @@ } |
{ | ||
"name": "elastic-apm-http-client", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A low-level HTTP client for communicating with the Elastic APM intake API", | ||
@@ -38,5 +38,5 @@ "main": "index.js", | ||
"coordinates": [ | ||
55.6811401, | ||
12.5645535 | ||
55.6809998, | ||
12.5644689 | ||
] | ||
} |
@@ -61,3 +61,3 @@ # elastic-apm-http-client | ||
The Elastic APM intake API v1 currently support the following endpoints: | ||
The Elastic APM intake API currently support the following endpoints: | ||
@@ -70,3 +70,3 @@ - `errors` | ||
``` | ||
http://localhost:8080/v1/<endpoint> | ||
http://localhost:8080/<endpoint> | ||
``` | ||
@@ -73,0 +73,0 @@ |
@@ -39,3 +39,3 @@ 'use strict' | ||
.matchHeader('User-Agent', 'foo elastic-apm-http-client/' + require('./package').version) | ||
.post('/v1/endpoint', function (body) { | ||
.post('/endpoint', function (body) { | ||
t.equal(body, buffer.toString('hex')) | ||
@@ -58,3 +58,3 @@ return true | ||
var scope = nock('http://localhost:8080') | ||
.post('/v1/endpoint', function (body) { | ||
.post('/endpoint', function (body) { | ||
t.equal(body, buffer.toString('hex')) | ||
@@ -78,3 +78,3 @@ return true | ||
.matchHeader('X-Foo', 'bar') | ||
.post('/v1/endpoint', function (body) { | ||
.post('/endpoint', function (body) { | ||
t.equal(body, buffer.toString('hex')) | ||
@@ -81,0 +81,0 @@ return true |
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
10079