Skip to content

Commit bf99b69

Browse files
authored
Release 3.13.0 (#1484)
* Release 3.13.0. * Update azure sdk deps. * Update aksLoader.tests.ts * Update arm64 workflows.
1 parent 0569915 commit bf99b69

File tree

7 files changed

+43
-22
lines changed

7 files changed

+43
-22
lines changed

.github/workflows/node.js-linux-arm64.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ jobs:
3939
# Install build tools needed for native modules
4040
apk add --no-cache python3 make g++
4141
42-
# Install and run tests
43-
npm run clean
42+
# Clean out directory only (preserve node_modules for fresh install)
43+
rm -rf ./out
44+
45+
# Install dependencies and run tests
4446
npm i
4547
npm run build --if-present
4648
npm run lint

.github/workflows/node.js-windows-arm64.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ jobs:
4545
# Install build dependencies for native modules
4646
apk add --no-cache python3 make g++
4747
48-
# Run tests
49-
npm run clean
48+
# Clean out directory only (preserve node_modules for fresh install)
49+
rm -rf ./out
50+
51+
# Install dependencies and run tests
5052
npm i
5153
npm run build --if-present
5254
npm run lint

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Release History
22

3+
### 3.13.0 (2026-01-16)
4+
5+
#### Other Changes
6+
7+
- Add OpenTelemetry global detection to the agent.
8+
- Add functionality for the TelemetryClient to not use global providers.
9+
- Resolve vulnerabilities in dependencies.
10+
311
### 3.12.1 (2025-11-10)
412

513
#### Other Changes

package-lock.json

Lines changed: 19 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "Microsoft Application Insights Team",
44
"license": "MIT",
55
"bugs": "https://github.com/microsoft/ApplicationInsights-node.js/issues",
6-
"version": "3.12.1",
6+
"version": "3.13.0",
77
"description": "Microsoft Application Insights module for Node.js",
88
"repository": {
99
"type": "git",
@@ -68,8 +68,8 @@
6868
"@azure/functions": "^4.6.0",
6969
"@azure/functions-old": "npm:@azure/[email protected]",
7070
"@azure/identity": "^4.6.0",
71-
"@azure/monitor-opentelemetry": "^1.14.2",
72-
"@azure/monitor-opentelemetry-exporter": "^1.0.0-beta.36",
71+
"@azure/monitor-opentelemetry": "^1.15.1",
72+
"@azure/monitor-opentelemetry-exporter": "^1.0.0-beta.38",
7373
"@azure/opentelemetry-instrumentation-azure-sdk": "^1.0.0-beta.7",
7474
"@opentelemetry/api": "^1.9.0",
7575
"@opentelemetry/api-logs": "^0.208.0",

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { MetricReader } from "@opentelemetry/sdk-metrics";
1010
import { OTLPExporterNodeConfigBase } from "@opentelemetry/otlp-exporter-base";
1111

1212

13-
export const APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION = "3.12.1";
13+
export const APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION = "3.13.0";
1414
export const DEFAULT_ROLE_NAME = "Web";
1515
export const AZURE_MONITOR_STATSBEAT_FEATURES = "AZURE_MONITOR_STATSBEAT_FEATURES";
1616

test/unitTests/agent/aksLoader.tests.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ describe("agent/AKSLoader", () => {
5353
let meterProvider = metrics.getMeterProvider() as any;
5454
assert.equal(meterProvider.constructor.name, "MeterProvider");
5555
assert.equal(meterProvider["_sharedState"]["metricCollectors"].length, 1);
56-
assert.equal(meterProvider["_sharedState"]["metricCollectors"][0]["_metricReader"]["_exporter"].constructor.name, "AzureMonitorMetricExporter");
56+
const exporterName = meterProvider["_sharedState"]["metricCollectors"][0]["_metricReader"]["_exporter"].constructor.name;
57+
assert.ok(exporterName.startsWith("AzureMonitorMetricExporter"), `Expected exporter name to start with 'AzureMonitorMetricExporter', but got '${exporterName}'`);
5758

5859
let tracerProvider = ((trace.getTracerProvider() as ProxyTracerProvider).getDelegate()) as any;
5960
assert.equal(tracerProvider.constructor.name, "NodeTracerProvider");
@@ -177,9 +178,9 @@ describe("agent/AKSLoader", () => {
177178
const metricCollectors = meterProvider["_sharedState"]["metricCollectors"];
178179
assert.ok(metricCollectors.length >= 1, "Should have at least one metric collector (Azure Monitor)");
179180

180-
// Check that we have at least one Azure Monitor exporter
181+
// Check that we have at least one Azure Monitor exporter (name may be AzureMonitorMetricExporter or AzureMonitorMetricExporterWithAggregation)
181182
const azureMonitorExporters = metricCollectors.filter((collector: any) =>
182-
collector["_metricReader"]["_exporter"].constructor.name === "AzureMonitorMetricExporter"
183+
collector["_metricReader"]["_exporter"].constructor.name.startsWith("AzureMonitorMetricExporter")
183184
);
184185
assert.equal(azureMonitorExporters.length, 1, "Should have exactly one Azure Monitor metric exporter");
185186
});

0 commit comments

Comments
 (0)