elastic-apm-node
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -0,1 +1,5 @@ | ||
# 2.0.2 - 2018/12/4 | ||
* fix: use randomFillSync polyfill on Node.js <6.13.0 ([#702](https://github.com/elastic/apm-agent-nodejs/pull/702)) | ||
* fix(hapi): ignore internal events channel ([#700](https://github.com/elastic/apm-agent-nodejs/pull/700)) | ||
# 2.0.1 - 2018/11/26 | ||
@@ -2,0 +6,0 @@ * fix: log APM Server API errors correctly ([#692](https://github.com/elastic/apm-agent-nodejs/pull/692)) |
@@ -87,3 +87,5 @@ 'use strict' | ||
function captureError (type, req, event, tags) { | ||
if (!event || !tags.error) return | ||
if (!event || !tags.error || event.channel === 'internal') { | ||
return | ||
} | ||
@@ -90,0 +92,0 @@ // TODO: Find better location to put this than custom |
'use strict' | ||
const crypto = require('crypto') | ||
const { randomFillSync } = require('random-poly-fill') // TODO: Remove when Node.js 6 is no longer supported | ||
@@ -69,3 +69,3 @@ const SIZES = { | ||
// Generate new id | ||
crypto.randomFillSync(buffer, OFFSETS.id, SIZES.id) | ||
randomFillSync(buffer, OFFSETS.id, SIZES.id) | ||
@@ -96,3 +96,3 @@ return new TraceContext(buffer) | ||
// Generate new ids | ||
crypto.randomFillSync(buffer, OFFSETS.traceId, SIZES.ids) | ||
randomFillSync(buffer, OFFSETS.traceId, SIZES.ids) | ||
@@ -144,3 +144,3 @@ // Apply reported and requested flags | ||
if (!id) { | ||
crypto.randomFillSync(this[bufferSymbol], OFFSETS.parentId, SIZES.id) | ||
randomFillSync(this[bufferSymbol], OFFSETS.parentId, SIZES.id) | ||
id = this.parentId | ||
@@ -147,0 +147,0 @@ } |
{ | ||
"name": "elastic-apm-node", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "The official Elastic APM agent for Node.js", | ||
@@ -82,2 +82,3 @@ "main": "index.js", | ||
"original-url": "^1.2.2", | ||
"random-poly-fill": "^1.0.0", | ||
"read-pkg-up": "^4.0.0", | ||
@@ -164,5 +165,5 @@ "redact-secrets": "^1.0.0", | ||
"coordinates": [ | ||
55.753271, | ||
37.5679821 | ||
55.6773705, | ||
12.5614183 | ||
] | ||
} |
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
182156
4334
23
+ Addedrandom-poly-fill@^1.0.0
+ Addedrandom-poly-fill@1.0.1(transitive)