Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/node.js-linux-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ jobs:
# Install build tools needed for native modules
apk add --no-cache python3 make g++
# Install and run tests
npm run clean
# Clean out directory only (preserve node_modules for fresh install)
rm -rf ./out
# Install dependencies and run tests
npm i
npm run build --if-present
npm run lint
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/node.js-windows-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ jobs:
# Install build dependencies for native modules
apk add --no-cache python3 make g++
# Run tests
npm run clean
# Clean out directory only (preserve node_modules for fresh install)
rm -rf ./out
# Install dependencies and run tests
npm i
npm run build --if-present
npm run lint
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release History

### 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
Expand Down
30 changes: 19 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Microsoft Application Insights Team",
"license": "MIT",
"bugs": "https://github.com/microsoft/ApplicationInsights-node.js/issues",
"version": "3.12.1",
"version": "3.13.0",
"description": "Microsoft Application Insights module for Node.js",
"repository": {
"type": "git",
Expand Down Expand Up @@ -68,8 +68,8 @@
"@azure/functions": "^4.6.0",
"@azure/functions-old": "npm:@azure/functions@3.5.1",
"@azure/identity": "^4.6.0",
"@azure/monitor-opentelemetry": "^1.14.2",
"@azure/monitor-opentelemetry-exporter": "^1.0.0-beta.36",
"@azure/monitor-opentelemetry": "^1.15.1",
"@azure/monitor-opentelemetry-exporter": "^1.0.0-beta.38",
"@azure/opentelemetry-instrumentation-azure-sdk": "^1.0.0-beta.7",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/api-logs": "^0.208.0",
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { MetricReader } from "@opentelemetry/sdk-metrics";
import { OTLPExporterNodeConfigBase } from "@opentelemetry/otlp-exporter-base";


export const APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION = "3.12.1";
export const APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION = "3.13.0";
export const DEFAULT_ROLE_NAME = "Web";
export const AZURE_MONITOR_STATSBEAT_FEATURES = "AZURE_MONITOR_STATSBEAT_FEATURES";

Expand Down
7 changes: 4 additions & 3 deletions test/unitTests/agent/aksLoader.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ describe("agent/AKSLoader", () => {
let meterProvider = metrics.getMeterProvider() as any;
assert.equal(meterProvider.constructor.name, "MeterProvider");
assert.equal(meterProvider["_sharedState"]["metricCollectors"].length, 1);
assert.equal(meterProvider["_sharedState"]["metricCollectors"][0]["_metricReader"]["_exporter"].constructor.name, "AzureMonitorMetricExporter");
const exporterName = meterProvider["_sharedState"]["metricCollectors"][0]["_metricReader"]["_exporter"].constructor.name;
assert.ok(exporterName.startsWith("AzureMonitorMetricExporter"), `Expected exporter name to start with 'AzureMonitorMetricExporter', but got '${exporterName}'`);

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

// Check that we have at least one Azure Monitor exporter
// Check that we have at least one Azure Monitor exporter (name may be AzureMonitorMetricExporter or AzureMonitorMetricExporterWithAggregation)
const azureMonitorExporters = metricCollectors.filter((collector: any) =>
collector["_metricReader"]["_exporter"].constructor.name === "AzureMonitorMetricExporter"
collector["_metricReader"]["_exporter"].constructor.name.startsWith("AzureMonitorMetricExporter")
);
assert.equal(azureMonitorExporters.length, 1, "Should have exactly one Azure Monitor metric exporter");
});
Expand Down
Loading