# Release History

## Unreleased

### 3.17.0 (2026-10-06)

#### Breaking Changes

- Minimum supported Node.js version is now 22.0.0, matching the Azure Monitor OpenTelemetry dependencies.
- Database telemetry now follows the stable OpenTelemetry database semantic conventions introduced by the updated instrumentations. Dependency names can change from legacy values such as `mongodb.insert` to low-cardinality names such as `insert <collection>` or `createIndexes <namespace>`. Update alerts, dashboards, and queries that match exact database dependency names.

#### Telemetry Changes

- Database spans now use `db.system.name`, `db.namespace`, `db.query.text`, and `db.operation.name` instead of the deprecated `db.system`, `db.name`, `db.statement`, and `db.operation` attributes.
- `@azure/monitor-opentelemetry-exporter` 1.0.0-beta.46 maps the stable database attributes to Application Insights dependency type, target, and data fields. Attributes consumed by that mapping are no longer duplicated in custom properties.
- HTTP instrumentation can provide the request method as the span name and carry the path in route or URL attributes. Azure Monitor derives the Application Insights request name from the method and route or URL when those attributes are available.

#### Other Changes

- Updated `@azure/monitor-opentelemetry` to 1.20.1 and `@azure/monitor-opentelemetry-exporter` to 1.0.0-beta.46.
- Added Azure Container Apps resource detection and programmatic console log severity configuration through the updated Azure Monitor distribution.
- Included Azure Monitor fixes for performance-counter sampling, resource detector dependencies, `OTEL_BSP_*` environment variable handling, instrumentation lifecycle, Live Metrics recovery, and stable OpenTelemetry database attributes.
- Updated OpenTelemetry dependencies to stable 2.10.0 and experimental 0.221.0.
- Refreshed performance harness dependencies to resolve npm audit vulnerabilities.

### 3.16.0 (2026-08-12)

#### Other Changes

- Bumped `@opentelemetry/*` (0.220 / 2.9) and `@azure/monitor-opentelemetry` to resolve dependency audit alerts.
- Replaced the `diagnostic-channel`/`diagnostic-channel-publishers` console log collection with OpenTelemetry console instrumentation provided by `@azure/monitor-opentelemetry`.
- Deprecated `noDiagnosticChannel` and `noPatchModules` in favor of OpenTelemetry `instrumentationOptions`.
- Console severity is now derived from the console method (`console.error` maps to Error, `console.warn` maps to Warning, and `console.log`/`console.info` map to Information).
- An explicitly configured console `logSendingLevel` now takes precedence over `APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL`.

### 3.15.1 (2026-06-24)

#### Other Changes

- Updated `@azure/monitor-opentelemetry`, `@azure/identity`, and `@opentelemetry/*` dependencies.
- Removed the legacy `@azure/functions-old` (v3) dependency.
- Resolve vulnerabilities in dependencies.

#### Bug Fixes

- `AutoCollectExceptions` no longer calls `forceFlush` per exception and now rate-limits exception telemetry to 50 records/min (emitting a single suppressed-count summary per window). `forceFlush` still runs on the terminal exit path.

### 3.15.0 (2026-05-13)

#### Breaking Changes

- Minimum supported Node.js version is now 20.0.0. Node.js 18 is end-of-life (April 2025) and the underlying `@azure/monitor-opentelemetry` / `@azure/monitor-opentelemetry-exporter` dependencies require Node >= 20.

#### Other Changes

- Updated @azure/monitor-opentelemetry and @azure/monitor-opentelemetry-exporter.
- Resolve vulnerabilities in dependencies.

#### Bug Fixes

- Fix memory leak caused by process event listener accumulation when `useAzureMonitor()` is called multiple times. ([#1415](https://github.com/microsoft/ApplicationInsights-node.js/issues/1415))

### 3.14.0 (2026-02-24)

#### Other Changes

- Update OTel global detection to wait for the customer app to initialize before detection.

### 3.13.0 (2026-01-16)

#### Other Changes

- Add OpenTelemetry global detection to the agent.
- Add functionality for the TelemetryClient to not use global providers.
- Resolve vulnerabilities in dependencies.

### 3.12.1 (2025-11-10)

#### Other Changes

- Updated @azure/monitor-opentelemetry and @azure/monitor-opentelemetry-exporter.

### 3.12.0 (2025-09-29)

#### Other Changes

- Update OTLP metric creation to respect multiple inputs. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1470)
- Fix security vulnerability with json-bigint 0.3.1. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1472)

### 3.11.0 (2025-09-25)

#### Other Changes

- Use OTLP/Protobuf exporter for AMW endpoint. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1470)

### 3.10.0 (2025-09-16)

#### Features Added

- Create OTLP metrics exporter in AKS auto-attach scenarios. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1467)

#### Other Changes

- Improve README config clarity. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1464)
- Fix base URI throwing warnings due to legacy generated files. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1462)
- Update functional tests to resolve CodeQL warning. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1460)
- Rename customer statsbeat to customer SDK stats for clarity. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1456)

### 3.9.0 (2025-08-05)

#### Bugs Fixed

- Fix diagnostic-channel console import. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1452)

### 3.8.0 (2025-07-28)

#### Features Added

- Upgrade to use OpenTelemetry JS 2.x dependencies. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1449)

#### Bugs Fixed

- Fix `trackDependency` default timing to treat current time as end time. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1445)
- Fix URI decode logging errors. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1448)

#### Other Changes

- Suppress CodeQL warnings for test files. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1443)
- Add copilot instructions. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1446)

### 3.7.1 (2025-07-08)

#### Features Added

- Add support for full request and dependency filtering. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1425)
- Add support for tracking mutli-iKey usage and the feature statsbeat handler. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1438)
- Add 15 second delay to long-interval statsbeat. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1440)

#### Bugs Fixed

- Fix preserving custom values passed to track methods. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1435)

#### Other Changes

- Improve unit test coverage. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1429)
- Improve correlation context documentation. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1430)
- Update packages with vulnerabilities. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1434)
- Remove explicit creation of metric exporter in AKS auto-attach scenario. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1436)

### 3.7.0 (2025-04-22)

#### Other Changes

- Add stale issue handling. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1421)

### 3.6.0 (2025-03-06)

#### Features Added

- Add `setAzureMonitorOptions()` to configuration. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1416)

### 3.5.0 (20205-01-31)

#### Other Changes

- Remove populating azure attributes limitation from README. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1409)
- Update Azure Functions dependency. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1401)

### 3.4.0 (2024-10-25)

#### Other Changes

- Update OpenTelemetry links in README. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1397)
- Update performance test naming. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1395)
- Send performance test data to Geneva upon run. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1392)
- Update README regarding ESM support. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1390)
- Remove unused Undici import. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1387)

### 3.3.0 (2024-09-16)

#### Features Added

- Allow distro config to be specified. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1382)
- Add support for Azure Functions programming model v4. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1374)

#### Bugs Fixed

- Fix adding log processors repeatedly when there is any config warning. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1377)
- Fix Azure Functions dependency issues. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1376)

#### Other Changes

- Bump express version in the functional tests. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1384)
- Bump body-parser version in the fucntional tests. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1381)
- Add code sample that tracks custom availability to README. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1381)
- Update OpenTelemetry dependencies. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1371)

### 3.2.2 (2024-08-19)

#### Other Changes

- Bumped to using `@azure/monitor-opentelemetry` v1.7.0. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1369)

### 3.2.1 (2024-07-05)

#### Features Added

- Add ETW diagnostic logging for Windows agent. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1350)

#### Bugs Fixed

- Fix issue with ETW log generation. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1357)

#### Other Changes

- Remove `@microsoft/typescript-etw` dependency. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1351)
- Bump `@azure/identity` dependency version. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1346)
- Bump `@grpc/grpc-js` dependency version. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1347)

### 3.2.0 (2024-06-14)

#### Features Added

- Update Live Metrics to be on by Default. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1340)
- Support tracking App Insights v3 shim usage in statsbeat. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1331)

#### Other Changes

- Bump `@azure/msal-node` version. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1344)
- Update sampling percentage to accept zero as valid. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1337)
- Update SDK backoff check. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1334)

### 3.1.0 (2024-05-13)

#### Features Added

- Fix default logger settings and add console log level support. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1326)

#### Other Changes

- Remove Winston diagnostic channel. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1327)
- Update performance counter names. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1325)
- Update tracer provider typing. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1314)

### 3.0.1 (2024-04-23)

#### Bugs Fixed

- Fix telemetry to log conversion. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1312)

### 3.0.0 (2024-03-08)

#### Other Changes

- Update agent backoff logic. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1296)
- Update warning tests and add console logging by default. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1292)
- Update support status of native metrics and environment variables. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1298)
- Clean up shim files and fix check for extended metrics environment variable. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1300)
- Add Application Insights v3 shim performance testing. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1302)
- Update unsupported message and remove deprecated semantic attributes. (https://github.com/microsoft/ApplicationInsights-node.js/pull/1306)
