Skip to content

Commit 0a74f1a

Browse files
authored
3.0.1 Release (#1313)
* 3.0.1 Release * Update package-lock.json * Update app insights version const.
1 parent 6a5c02f commit 0a74f1a

File tree

7 files changed

+14
-15
lines changed

7 files changed

+14
-15
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
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.0.0",
6+
"version": "3.0.1",
77
"description": "Microsoft Application Insights module for Node.js",
88
"repository": {
99
"type": "git",

src/agent/diagnostics/baseDiagnosticLogger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT license.
33

44
import { IAgentLogger, IDiagnosticLog, IDiagnosticLogger, LOGGER_LANGUAGE, LOGGER_NAME } from "../types";
5-
import { AZURE_MONITOR_OPENTELEMETRY_VERSION } from "../../types";
5+
import { APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION } from "../../types";
66

77

88
export class BaseDiagnosticLogger implements IDiagnosticLogger {
@@ -22,7 +22,7 @@ export class BaseDiagnosticLogger implements IDiagnosticLogger {
2222
this._language = LOGGER_LANGUAGE;
2323
this._siteName = process.env.WEBSITE_SITE_NAME;
2424
this._extensionVersion = process.env.ApplicationInsightsAgent_EXTENSION_VERSION;
25-
this._sdkVersion = AZURE_MONITOR_OPENTELEMETRY_VERSION;
25+
this._sdkVersion = APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION;
2626
this._subscriptionId = process.env.WEBSITE_OWNER_NAME ? process.env.WEBSITE_OWNER_NAME.split("+")[0] : null;
2727
}
2828

src/agent/diagnostics/statusLogger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import * as os from "os";
55
import { FileWriter } from "./writers/fileWriter";
66
import { IAgentLogger, IStatusContract, LOGGER_LANGUAGE } from "../types";
7-
import { AZURE_MONITOR_OPENTELEMETRY_VERSION } from "../../types";
7+
import { APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION } from "../../types";
88

99

1010
export class StatusLogger {
@@ -19,7 +19,7 @@ export class StatusLogger {
1919
this._agentLogger = agentLogger;
2020
this._instrumentationKey = instrumentationKey;
2121
this._language = LOGGER_LANGUAGE;
22-
this._sdkVersion = AZURE_MONITOR_OPENTELEMETRY_VERSION;
22+
this._sdkVersion = APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION;
2323
this._machineName = os.hostname();
2424
this._processId = String(process.pid);
2525
}

src/agent/diagnostics/writers/azureFunctionsWriter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { AZURE_MONITOR_OPENTELEMETRY_VERSION } from "../../../types";
4+
import { APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION } from "../../../types";
55
import { AZURE_APP_NAME, IAgentLogger } from "../../types";
66

77
const AZURE_FUNCTIONS_DIAGNOSTIC_PREFIX = "LanguageWorkerConsoleLogMS_APPLICATION_INSIGHTS_LOGS";
@@ -14,7 +14,7 @@ export class AzureFunctionsWriter implements IAgentLogger {
1414
constructor(instrumentationKey: string) {
1515
this._instrumentationKey = instrumentationKey;
1616
this._appName = AZURE_APP_NAME;
17-
this._agentVersion = AZURE_MONITOR_OPENTELEMETRY_VERSION;
17+
this._agentVersion = APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION;
1818
}
1919

2020
public log(log: any) {

src/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import { InstrumentationConfig } from "@opentelemetry/instrumentation";
77
import { OTLPExporterNodeConfigBase } from "@opentelemetry/otlp-exporter-base";
88

99

10-
export const AZURE_MONITOR_OPENTELEMETRY_VERSION = "1.3.0";
10+
export const APPLICATION_INSIGHTS_OPENTELEMETRY_VERSION = "3.0.1";
1111
export const DEFAULT_ROLE_NAME = "Web";
12-
process.env["AZURE_MONITOR_DISTRO_VERSION"] = AZURE_MONITOR_OPENTELEMETRY_VERSION;
1312

1413
/**
1514
* Azure Monitor OpenTelemetry Options

test/performanceTests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@opentelemetry/api": "^1.8.0",
1414
"@opentelemetry/api-logs": "^0.49.1",
1515
"@opentelemetry/sdk-logs": "^0.49.1",
16-
"applicationinsights": "^3.0.0",
16+
"applicationinsights": "^3.0.1",
1717
"dotenv": "^16.4.5",
1818
"tslib": "^2.6.2"
1919
},

0 commit comments

Comments
 (0)