From fc06c0624c1d49427ae3053d825cdc54038f9bc3 Mon Sep 17 00:00:00 2001 From: Jackson Weber Date: Mon, 22 Apr 2024 17:29:58 -0700 Subject: [PATCH 1/3] 3.0.1 Release --- package.json | 2 +- src/types.ts | 2 +- test/performanceTests/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index fb3c816a8..4e177449b 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "author": "Microsoft Application Insights Team", "license": "MIT", "bugs": "https://github.com/microsoft/ApplicationInsights-node.js/issues", - "version": "3.0.0", + "version": "3.0.1", "description": "Microsoft Application Insights module for Node.js", "repository": { "type": "git", diff --git a/src/types.ts b/src/types.ts index 8ca352b41..413d73858 100644 --- a/src/types.ts +++ b/src/types.ts @@ -7,7 +7,7 @@ import { InstrumentationConfig } from "@opentelemetry/instrumentation"; import { OTLPExporterNodeConfigBase } from "@opentelemetry/otlp-exporter-base"; -export const AZURE_MONITOR_OPENTELEMETRY_VERSION = "1.3.0"; +export const AZURE_MONITOR_OPENTELEMETRY_VERSION = "1.4.0"; export const DEFAULT_ROLE_NAME = "Web"; process.env["AZURE_MONITOR_DISTRO_VERSION"] = AZURE_MONITOR_OPENTELEMETRY_VERSION; diff --git a/test/performanceTests/package.json b/test/performanceTests/package.json index 795b60038..55ec20014 100644 --- a/test/performanceTests/package.json +++ b/test/performanceTests/package.json @@ -13,7 +13,7 @@ "@opentelemetry/api": "^1.8.0", "@opentelemetry/api-logs": "^0.49.1", "@opentelemetry/sdk-logs": "^0.49.1", - "applicationinsights": "^3.0.0", + "applicationinsights": "^3.0.1", "dotenv": "^16.4.5", "tslib": "^2.6.2" }, From 2371c31a0986871ec80f904c3922e38774e31ac4 Mon Sep 17 00:00:00 2001 From: Jackson Weber Date: Mon, 22 Apr 2024 17:32:32 -0700 Subject: [PATCH 2/3] Update package-lock.json --- package-lock.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4cb1c2c3f..0aaef721c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "applicationinsights", - "version": "3.0.0", + "version": "3.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "applicationinsights", - "version": "3.0.0", + "version": "3.0.1", "license": "MIT", "dependencies": { "@azure/core-auth": "^1.3.0", From d6bd389ba9917a7aed33ccb5730e534b48d21f84 Mon Sep 17 00:00:00 2001 From: Jackson Weber Date: Tue, 23 Apr 2024 14:23:45 -0700 Subject: [PATCH 3/3] Update app insights version const. --- package-lock.json | 6 +++--- src/agent/diagnostics/baseDiagnosticLogger.ts | 4 ++-- src/agent/diagnostics/statusLogger.ts | 4 ++-- src/agent/diagnostics/writers/azureFunctionsWriter.ts | 4 ++-- src/types.ts | 3 +-- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0aaef721c..a2f638f69 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2508,9 +2508,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.746", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.746.tgz", - "integrity": "sha512-jeWaIta2rIG2FzHaYIhSuVWqC6KJYo7oSBX4Jv7g+aVujKztfvdpf+n6MGwZdC5hQXbax4nntykLH2juIQrfPg==", + "version": "1.4.747", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.747.tgz", + "integrity": "sha512-+FnSWZIAvFHbsNVmUxhEqWiaOiPMcfum1GQzlWCg/wLigVtshOsjXHyEFfmt6cFK6+HkS3QOJBv6/3OPumbBfw==", "dev": true }, "node_modules/emoji-regex": { diff --git a/src/agent/diagnostics/baseDiagnosticLogger.ts b/src/agent/diagnostics/baseDiagnosticLogger.ts index 06c6bcaa3..c57498452 100644 --- a/src/agent/diagnostics/baseDiagnosticLogger.ts +++ b/src/agent/diagnostics/baseDiagnosticLogger.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { IAgentLogger, IDiagnosticLog, IDiagnosticLogger, LOGGER_LANGUAGE, LOGGER_NAME } from "../types"; -import { AZURE_MONITOR_OPENTELEMETRY_VERSION } from "../../types"; +import { APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION } from "../../types"; export class BaseDiagnosticLogger implements IDiagnosticLogger { @@ -22,7 +22,7 @@ export class BaseDiagnosticLogger implements IDiagnosticLogger { this._language = LOGGER_LANGUAGE; this._siteName = process.env.WEBSITE_SITE_NAME; this._extensionVersion = process.env.ApplicationInsightsAgent_EXTENSION_VERSION; - this._sdkVersion = AZURE_MONITOR_OPENTELEMETRY_VERSION; + this._sdkVersion = APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION; this._subscriptionId = process.env.WEBSITE_OWNER_NAME ? process.env.WEBSITE_OWNER_NAME.split("+")[0] : null; } diff --git a/src/agent/diagnostics/statusLogger.ts b/src/agent/diagnostics/statusLogger.ts index 034547f32..1820a1313 100644 --- a/src/agent/diagnostics/statusLogger.ts +++ b/src/agent/diagnostics/statusLogger.ts @@ -4,7 +4,7 @@ import * as os from "os"; import { FileWriter } from "./writers/fileWriter"; import { IAgentLogger, IStatusContract, LOGGER_LANGUAGE } from "../types"; -import { AZURE_MONITOR_OPENTELEMETRY_VERSION } from "../../types"; +import { APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION } from "../../types"; export class StatusLogger { @@ -19,7 +19,7 @@ export class StatusLogger { this._agentLogger = agentLogger; this._instrumentationKey = instrumentationKey; this._language = LOGGER_LANGUAGE; - this._sdkVersion = AZURE_MONITOR_OPENTELEMETRY_VERSION; + this._sdkVersion = APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION; this._machineName = os.hostname(); this._processId = String(process.pid); } diff --git a/src/agent/diagnostics/writers/azureFunctionsWriter.ts b/src/agent/diagnostics/writers/azureFunctionsWriter.ts index 694536742..c340d3ebf 100644 --- a/src/agent/diagnostics/writers/azureFunctionsWriter.ts +++ b/src/agent/diagnostics/writers/azureFunctionsWriter.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { AZURE_MONITOR_OPENTELEMETRY_VERSION } from "../../../types"; +import { APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION } from "../../../types"; import { AZURE_APP_NAME, IAgentLogger } from "../../types"; const AZURE_FUNCTIONS_DIAGNOSTIC_PREFIX = "LanguageWorkerConsoleLogMS_APPLICATION_INSIGHTS_LOGS"; @@ -14,7 +14,7 @@ export class AzureFunctionsWriter implements IAgentLogger { constructor(instrumentationKey: string) { this._instrumentationKey = instrumentationKey; this._appName = AZURE_APP_NAME; - this._agentVersion = AZURE_MONITOR_OPENTELEMETRY_VERSION; + this._agentVersion = APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION; } public log(log: any) { diff --git a/src/types.ts b/src/types.ts index 413d73858..ab314a56d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -7,9 +7,8 @@ import { InstrumentationConfig } from "@opentelemetry/instrumentation"; import { OTLPExporterNodeConfigBase } from "@opentelemetry/otlp-exporter-base"; -export const AZURE_MONITOR_OPENTELEMETRY_VERSION = "1.4.0"; +export const APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION = "3.0.1"; export const DEFAULT_ROLE_NAME = "Web"; -process.env["AZURE_MONITOR_DISTRO_VERSION"] = AZURE_MONITOR_OPENTELEMETRY_VERSION; /** * Azure Monitor OpenTelemetry Options