From 0a74f1a12f9228cc2f0cc96c1fc84f442f059e22 Mon Sep 17 00:00:00 2001 From: Jackson Weber <47067795+JacksonWeber@users.noreply.github.com> Date: Tue, 23 Apr 2024 14:48:31 -0700 Subject: [PATCH] 3.0.1 Release (#1313) * 3.0.1 Release * Update package-lock.json * Update app insights version const. --- package-lock.json | 10 +++++----- package.json | 2 +- src/agent/diagnostics/baseDiagnosticLogger.ts | 4 ++-- src/agent/diagnostics/statusLogger.ts | 4 ++-- src/agent/diagnostics/writers/azureFunctionsWriter.ts | 4 ++-- src/types.ts | 3 +-- test/performanceTests/package.json | 2 +- 7 files changed, 14 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4cb1c2c3..a2f638f6 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", @@ -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/package.json b/package.json index 81e6bee2..a8f7d22c 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/agent/diagnostics/baseDiagnosticLogger.ts b/src/agent/diagnostics/baseDiagnosticLogger.ts index 06c6bcaa..c5749845 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 034547f3..1820a131 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 69453674..c340d3eb 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 8ca352b4..ab314a56 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.3.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 diff --git a/test/performanceTests/package.json b/test/performanceTests/package.json index 795b6003..55ec2001 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" },