Packages

@appsignal/nodejs

3.9.5 · 11 Nov 2026MIT24.2k / weekRepositoryHomepagenpmAtom feed

Upgrading @appsignal/nodejs From 2.0.0 to 2.4.2

23 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.0.0Latest3.9.5
  1. 2.0.0yours
  2. 15 releases
  3. 2.3.2breaking
  4. 6 releases
  5. 2.4.2target

Before you upgrade

Tick each one off as you go
  • Breaking2.3.2
  • Breaking2.3.2
  • Breaking2.3.2
  • Deprecated2.2.6

Release by release

  1. 2.4.2

    8 Jun 20223 fixes
    • Fixed

      Patch - Only allow open root spans to be set as root. This avoids closed root spans to be reused in child contexts.

    • Fixed

      Patch - Don't return closed spans in 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.

    • Fixed

      Patch - Add @opentelemetry/sdk-trace-base package runtime dependency. Our OpenTelemetry SpanProcessor needs this package at runtime, not just at compile time.

  2. 2.4.1

    7 Jun 20222 fixes
    • Fixed

      Patch - Do not instrument HTTP requests to the default socket.io path. This works around an issue where our HTTP instrumentation breaks socket.io's server side, causing the client side to get stuck in a connection loop.

    • Fixed

      Patch - Fix removing event listeners from wrapped event emitters. When using tracer.wrapEmitter to wrap an event emitter, it was not possible to remove any listeners that were added after the event emitter was wrapped.

  3. 2.4.0

    2 Jun 20223 new · 2 fixes
    • New

      Minor - Add OpenTelemetry span processor for the mysql and mysql2 packages. These are experimental integrations and require additional set up to integrate with OpenTelemetry.

    • New

      Patch - Add config options for disabling default instrumentation like HTTP, HTTPS, PostgreSQL (pg package) and Redis (node-redis package).

    • New

      Patch - Add OpenTelemetry node-redis and ioredis query sanitizers. We recommend using these sanitizers to ensure no sensitive data is sent in query statements. Add the sanitizer to the dbStatementSerializer config as demonstrated below.

    • Fixed

      Patch - Fix the ScopeManager.active() function returning closed spans.

    • Fixed

      Patch - Do not transfer closed spans for new async contexts in the ScopeManager. Rather than relying on ScopeManager.active() and ScopeManager.root() to make sure the span is not already closed, also make sure it's not closed when transferring spans around between async contexts.

  4. 2.3.6

    11 May 20221 new
    • New

      Patch - Add the createRootSpan function to the Tracer to allow explicit creation of RootSpans even if another RootSpan already exists and is tracked as the current RootSpan. Make sure to not forget about the previous RootSpan, and close it as well at some point when using this function.

  5. 2.3.5

    29 Apr 20222 fixes
    • Fixed

      Patch - When instrumenting an outgoing HTTP request, read the host property from the request options if the hostname property is not present. This fixes a bug where outgoing HTTP request hosts would be shown as http://localhost.

    • Fixed

      Patch - Fix error on Microsoft Windows machines on install. The AppSignal extension still won't install on Windows, but now it won't cause an error while checking a development mode condition if it should build the TypeScript package.

  6. 2.3.4

    11 Apr 20221 fix
    • Fixed

      Patch - Ensure the root span is preserved across scopes. Due to a bug in the scope management logic, calling tracer.withSpan could cause the root span for a given scope to be forgotten.

  7. 2.3.3

    11 Apr 20221 new · 3 fixes
    • New

      Patch - Log messages are now sent through a new centralized logger that writes to /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.

    • Fixed

      Patch - Allow nested values in 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.

    • Fixed

      Patch - Follow redirects when downloading the AppSignal agent. This fixes an issue where the redirect page would be downloaded instead of the agent, causing the agent installation to fail.

    • Fixed

      Patch - Fix an issue where the AppSignal extension would throw an error when an object containing a non-integer number is sent to it. This would be triggered when calling setSampleData with an object containing a non-integer number, or when the values for a metric's tags are non-integer numbers.

  8. 2.3.2

    Migration needed15 Feb 20222 fixes
    • Breaking

      Patch - Remove the private function Span.toJSON. This wasn't previously marked as private, but it was.

    • Breaking

      Patch - Do not ship the extension install script test files in the published package. Reduces the package size a tiny bit.

    • Breaking

      Patch - Remove the unused experimental module.

    • Fixed

      Patch - Show errors in loading the extension when the @appsignal/nodejs module is required.

    • Fixed

      Patch - The minutely probes are now stopped when Appsignal.stop() is called. This fixes an issue where Jest tests would warn about asynchronous operations that remain pending after the tests.

59 other lines we could not sort, mostly version bumps
  • 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.

    2.4.2
  • 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.

    2.4.2
  • Patch - Use the OpenTelemetry SpanProcessor interface to build our own SpanProcessor. We previously copied the SpanProcessor code into our package, but instead we now use the OpenTelemetry interface directly. This should make our processor match the expected type better.

    2.4.0
  • Patch - Bump agent to v-0b43802.

    2.4.0
  • Patch - Use the Node.js performance module as high-resolution timer for span creation and close times. This provides more accurate times and improves compatibility with other systems in the future.

    2.3.5
  • Patch - Update node-gyp to major version 9.0.0. This drops compatibility with Python 2.7 for the extension install, but it makes it compatible with the latest Python 3 version, which should be more accessible to users going forward.

    2.3.4
  • Patch - Bump agent to v-bbc830a

    2.3.3
  • Patch - Update the expected Span type in ScopeManager to 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.

    2.3.2
  • Patch - Improve memory usage when extension is not initialized. It will no longer initialize a new empty Tracer object when the extension is not loaded or AppSignal is not active.

    2.3.2
  • Patch - Update @appsignal/types dependency to 3.0.0.

    2.3.2

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.