@appsignal/nodejs
Advanced tools
Changelog
3.0.1
Changelog
3.0.0
Welcome to AppSignal for Node.js version 3.0.0.!
In this release, we have switched to using OpenTelemetry internally for tracing. (We do not yet support OpenTelemetry for metrics and logging, but do continue to support metrics through our own metrics system.) The AppSignal instrumentation packages @appsignal/express
, @appsignal/koa
, @appsignal/nextjs
and @appsignal/apollo-server
should no longer be used. Some official OpenTelemetry instrumentation packages are bundled with our package as dependencies and instrumented automatically. Other supported instrumentation packages can be added and configured manually.
We strongly recommend following the [migration guide] while upgrading. Instrumentation from package version 2 is not compatible with version 3. Custom instrumentation will need to be set up using OpenTelemetry instrumentation.
If you run into any issues upgrading to this new version, please contact us at [support@appsignal.com][support] for help.
@appsignal/*
instrumentation packages.Changelog
3.0.0-beta.2
23192ef patch - Bump agent to v-de2dd6e.
http.route
attribute to always
build the incident action name. This should avoid new incidents with
HTTP POST
-like naming.Changelog
3.0.0-beta.1
@appsignal/<package name>
instrumentation packages are not compatible. Please remove them before upgrading.d452b46 patch - Support OpenTelemetry root spans in SpanProcessor. This change makes AppSignal instrumentation (like Express/Koa.js/Next.js) no longer a requirement. In fact you will need to use the OpenTelemetry instrumentation for those libraries from now on.
60428c8 patch - Bump agent to v-d573c9b
appsignal_create_opentelemetry_span
function to create spans for further modification, rather than only import them.a1d947c patch - Remove the mysql2 package peer dependency. It's not only present as a development dependency for the package.
54491fa patch - Bump agent to 06391fb
log_level
config option.debug
config option. This has been replaced with logLevel
set to debug
.apiKey
config option. This has been renamed to pushApiKey
.Changelog
2.4.2
b7382d7 patch - Do not restore closed spans from within the withSpan
helper. If a previously active span gets closed while withSpan
has another span as currently active, do not restore the closed span when the callback has finished.
7a7bc9b patch - Do not restore root span after withSpan
callback has finished. Previously the root span was restored to the original root span before the withSpan
helper was called. This has been changed, because the withSpan
helper is only about changing the active span, not the root span. If a new root span has been set within a withSpan
helper callback, the root span will no longer be restored. We recommend setting a new root span before calling withSpan
instead.
const rootSpan = tracer.rootSpan()
const span = tracer.createSpan(...)
tracer.withSpan(span, function(span) {
tracer.createRootSpan(...)
});
// No longer match
rootSpan != tracer.rootSpan()
withSpan
helper. If a closed span was given to the witSpan
helper it would temporarily overwrite the context with a closed span that cannot be modified. Instead it will return the current active span, if any. If no span was active it will return a NoopSpan
.@opentelemetry/sdk-trace-base
package runtime dependency. Our OpenTelemetry SpanProcessor needs this package at runtime, not just at compile time.