log4js-logstash-tcp
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -37,6 +37,6 @@ 'use strict'; | ||
function log(loggingEvent) { | ||
let currentAPMTraceparent = false | ||
let currentAPMTransaction = false | ||
try { | ||
const apm = require('elastic-apm-node'); | ||
currentAPMTraceparent = apm.currentTraceparent | ||
currentAPMTransaction = apm.currentTransaction | ||
} catch(e) { | ||
@@ -79,8 +79,7 @@ // ignore APM if it's not loaded | ||
'@timestamp': (new Date(loggingEvent.startTime)).toISOString(), | ||
// this allows to show logs generated by logging events together with APM events | ||
...(currentAPMTransaction.ids || {}), | ||
type: type, | ||
message: layout(loggingEvent)//.data[0] | ||
}; | ||
// this allows to show logs generated by logging events together with APM events | ||
if(currentAPMTraceparent) | ||
logObject['logstash-elastic-apm-traceparent'] = currentAPMTraceparent; | ||
@@ -87,0 +86,0 @@ if (checkArgs(config.args, false)) { |
{ | ||
"name": "log4js-logstash-tcp", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"author": "Aigent B.V.", | ||
@@ -5,0 +5,0 @@ "description": "This is a copy of the logstashUDP appender but instead sending via UDP send via TCP to avoid the maximum 64k bytes message size with the logstashUDP appender.", |
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
28989
223