@appsignal/nodejs
Advanced tools
Changelog
2.3.3
/tmp/appsignal.log
by default.
A warning is printed to STDERR when the default or provided logPath is not accessible, and the Logger
automatically falls back to STDOUT. Use config option log: stdout
to log AppSignal messages to STDOUT instead.9a7fafe patch - Bump agent to v-bbc830a
df63d2d patch - Bump agent to v-f57e6cb
Span.setSampleData
. This change also allows
values other than strings, integers and booleans to be passed as values
within the sample data objects. Note that not all sample data keys allow
nested values to be passed.setSampleData
with an object containing a non-integer number, or when the values for a metric's tags are non-integer numbers.Changelog
2.3.2
Span
from the @appsignal/nodejs
package, rather than the NodeSpan
from the @appsignal/types
package. The type definition is the same, but now all Span types used by the Node.js integration are defined in the @appsigna/nodejs
package.Span.toJSON
. This wasn't previously marked as private, but it was.Changelog
2.3.0
probes.unregister(name)
method to unregister a probe by name.os
and cpu
fields from the package.json
. This will prevent installations from failing on unlisted CPU architectures and Operating Systems. Our extension installer script will do this check instead. The package should not fail to install when it encounters an unsupported CPU architecture or Operating System.fa955af patch - Add a hostname tag to V8 probe metrics. This fixes an issue where metrics' values would be overriden between different hosts.
72c54a4 patch - Setting enableMinutelyProbes
to false
now disables the minutely probes
system. Custom probes will not be called when the minutely probes are
disabled. In addition, the APPSIGNAL_ENABLE_MINUTELY_PROBES
environment
variable can now be used to enable or disable the minutely probes.
Before this change, setting enableMinutelyProbes
to false
would not
register the default Node.js heap statistics minutely probe, but custom
probes would still be called. To opt in for the previous behaviour,
disabling only the Node.js heap statistics minutely probe without disabling
custom probes, you can use the probes.unregister()
method to unregister
the default probe:
const probes = appsignal.metrics().probes();
probes.unregister("v8_stats");
bb62525 patch - Use the APPSIGNAL_ACTIVE environment variable to determine whether AppSignal is active.
f52a824 patch - Fix the extension function fallbacks on installation failure. When the extension fails to install and calls are made to the not loaded functions, it will no longer throw an error.
Changelog
2.2.10
Changelog
2.2.8
caFilePath
config option now works for diagnose script external requests.sendParams
config option is now available. When set to false
, it prevents the integration
from sending request params to AppSignal.Changelog
2.2.6
a2ee3d5 patch - Add send_environment_metadata
config option to configure the environment metadata collection. For more information, see our environment metadata docs.
158a134 patch - Add "logLevel" config option. This new option allows you to select the type of messages AppSignal's logger will log and up. The "debug" option will log all "debug", "info", "warning" and "error" log messages. The default value is: "info"
The allowed values are:
Changelog
2.2.5
Appsignal
objectlogPath
config option.
This was already deprecated. Now it also prints a warning message on app start.filterParameters
and filterSessionData
options to filter out specific parameter keys or session data keys. Previously only the (undocumented) filterDataKeys
config option was available to filter out all kinds of sample data.apiKey
option to pushApiKey
to match other AppSignal integrations. If apiKey
is set it will automatically set pushApiKey
. The apiKey
option will be removed in the next major version of this package.requestHeaders
config option is now available. An allow list that gives the ability to define
which request headers you want to be shown in sample detail views. The default is a list of common
headers that do not include personal identifiable information.
Read more about request headers on our documentation website.log_dir_path
path check. It now always checks the actual log file's parent directory, rather than the configured path. These two values may differ as the package does a permission check to see if the logPath
is writable or not./tmp
).