Skip to content

Releases: microsoft/ApplicationInsights-node.js

1.0.3

01 Jun 22:16
4dd58fd

Choose a tag to compare

  • #246, #382, #400 Respect http_proxy and https_proxy environment variables. Allow for configurable HTTP(S) proxies and Node.js http agents.
  • #395 Fix ACL related errors in App Services and Azure Functions. Adjust connection error logging to be more error-tolerant.
  • #394 Fix missing propagation of ai_authUser cookie to userAuthUserId tag.
  • #398 Fix broken correlation with some non-node SDKs and incomplete views of correlation within the Azure Portal

1.0.2

21 Feb 23:55
a637a74

Choose a tag to compare

  • #344 Missing test for package.json pathfinding
  • #346 Receiving "Zone already loaded" error when requiring AI client in Function App
  • #358 MAC signature error when reading files from Azure File Storage
  • #362 TypeError: Cannot read property 'indexOf' of null
  • #365 trackNodeHttpRequest does not follow type contract
  • #368 Custom .trackRequest and .trackDependency not appearing in Application Insights telemetry data
  • Improved internal logging coverage
  • Fixes for stability issues with retry caching from disk

1.0.1

29 Nov 23:55
001cc4f

Choose a tag to compare

  • #352 Dependency calls over HTTPS are not detected on Node 8.9.0
  • #351 Sample rate should not be applied for metrics telemetry
  • #349 Double dependency reporting for HTTP requests
  • #348 getCorrelationContext() doesn't return correlation context
  • Dependency telemetry does not contain result code
  • Dependency calls over HTTP are not detected on some versions of Node

This patch release to 1.0.0 contains several important fixes for both automatic and manually tracked dependency collection. If you are missing dependency telemetry, or notice missing fields such as resultCode, updating to 1.0.1 is suggested.

1.0.0

03 Oct 18:15

Choose a tag to compare

  • #333 SamplingTelemetryProcessor should ignore metrics
  • #331 Unable to end node process
  • #330 TSC fails to compile if SDK is used in an app with TSC < 2.4.0
  • #329 TSC fails to compile if SDK is used in an app with node 0.12 types
  • #328 Add functional tests to cover all diagnostic channel autocollection
  • #326 EnvelopeFactory StackFrame parsing can't parse correlated stack frames
  • #321 TelemetryClient.trackDependency should not assume 'data' property is a URL
  • #319 Add calls to enable winston and postgres

This is the first stable release of the Application Insights Node.js SDK.

Changes since 0.22.0 are primarily bugfixes and stability improvements. Please read the migration section of the readme if you are upgrading from a version prior to 0.22.0.

0.22.0

08 Sep 22:38

Choose a tag to compare

0.22.0 Pre-release
Pre-release
  • #155, #282 Documentation improvements
  • #289 Performance counter data rate improvements
  • #311 Set up of auto-correlation for http.createServer does not cover all cases
  • #284 Multi-component application maps require cloud_RoleName
  • #225 Better differentiate Client and Server requests
  • #202 Offline mode does not persist endpoint with file, leading to date being sent to wrong endpoints
  • #285 OS Reporting gives broken string
  • #148 Tracking custom requests
  • #286 Specify resultCode when using trackDependency
  • #302, #269 Refactor API
  • #256 Cannot find module diagnostic-channel
  • #63 Exceptions are stored on disk even if offline mode is off and are never sent
  • #56 Dispose not removing timers and exception handlers
  • #147 Failure in telemetry processor should not fail telemetry delivery

This release includes breaking changes across most of the SDK in order to bring consistency with other Application Insights SDKs and allow future extensibility. Please review the README for new method and property names. For additional detail on the track API, review #302.

In general, you can migrate with the following:

  • Replace references to appInsights.client with appInsights.defaultClient
  • Replace references to appInsights.getClient() with new appInsights.TelemetryClient()
  • Replace all arguments to client.track* methods with a single object containing named properties as arguments. See your IDE's built-in type hinting, or TelemetryTypes, for the expected object for each type of telemetry.

If you access appInsights configuration functions without chaining them to appInsights.setup(), you can now find these functions at appInsights.Configuration (eg. appInsights.Configuration.setAutoCollectDependencies(true))

Changes to default configurations also exist in this SDK. Primarily, storing telemetry to disk when your app is offline is now enabled by default.

0.21.0

14 Jun 22:49

Choose a tag to compare

0.21.0 Pre-release
Pre-release
  • #265, #278, #279, #280 Add support for new correlation headers and exporting custom properties cross-server
  • #271 Update travis ci definitions
  • #274 Fix trackDependency serialization when used with fractional milliseconds
  • #272 Clear all usages of implicit any
  • #276 Update diagnostic-channel-publishers to 0.1.3
  • #277 Fix flaky unit test failures

0.20.1

26 May 02:07

Choose a tag to compare

0.20.1 Pre-release
Pre-release
  • #248 Fix SDK version reports as node:unknown
  • #251 Adding option to selectively disable module patches
  • #254 Fix SDK crash when Error.prepareStackTrace returns a non-string
  • #257 Update dependency on diagnostic-channel-publishers

0.20.0

11 May 21:39

Choose a tag to compare

0.20.0 Pre-release
Pre-release
  • #243, #238, #222 Readme revamping
  • #240 Include typescript definitions in NPM package
  • #239 Enable automatic dependency correlation by default
  • #235 Add support for dependency collection and correlation using diagnostic-channel
  • #237, #231, #219 Support for AppId-based cross component correlation
  • #236 Fix issue where we send outdated baseTypes
  • #234 Provide access to contracts
  • #233 Allow for overriding application version
  • #232, #228 Use autogenerated schema contracts
  • #223, #218 Revamp method comment documentation
  • #224, #211 Update npm build and install scripts
  • #217 Add sampling support
  • #221 Migrate from typings to types
  • #213 Fix CORS error when using browserifty
  • #210 Expose tagOverrides and contextObjects on more track APIs
  • #212 Add schema and typescript files to npmignore

0.19.0

09 Mar 23:22

Choose a tag to compare

0.19.0 Pre-release
Pre-release
  • #200 Allow durations to be longer than 24 hours
  • #199 Remove obsolete fields from envelope
  • #198 Restrict customProperties to kv pair of strings and add warnings discouraging sensitive info storage
  • #197 Add national clouds to correlationExcludedDomains
  • #195 Copying all descriptors of error properties
  • #194 Fixed correlationHeaderExcludedDomains only cares about first value
  • #191 Fix validateStringMap function
  • #187 Add automatic correlation between dependencies and requests
  • #178 Allow to disable console logging

This release includes an important change to tag override functionality available on track methods. Before this release, if an override tag object was provided it was used instead of the tags available on the client context. SDK behavior is now to merge the tags set on the override object with the client context. If you were using this functionality to remove default provided tags, you should instead identify the tags you wish to remove by name in your override object, and set them explicitly to null, undefined, or "".

0.18.0

17 Jan 22:31

Choose a tag to compare

0.18.0 Pre-release
Pre-release
  • #165 extend telemetry client to pass the context
  • #164 fix the compilation
  • #163 read transaction ids
  • #160 read transaction root and parent ID