Skip to content

Commit 84f1d4e

Browse files
authored
Release Version 3.0.0 (#1309)
* Update readme and contributing. * Update workflows and readme. * Update backcompat.yml * Update README.md * Add further context and remove en-us specific links. * Small configuration logic update. * Remove correlationHeadaerExcludedDomains. * Update distro & exporter versions.
1 parent c42914c commit 84f1d4e

File tree

11 files changed

+1046
-434
lines changed

11 files changed

+1046
-434
lines changed

.github/workflows/backcompat.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Back Compatibility CI
22

33
on:
44
push:
5-
branches: [ develop ]
5+
branches: [ 2.x ]
66
pull_request:
7-
branches: [ develop ]
7+
branches: [ 2.x ]
88

99
jobs:
1010
backcompat:

.github/workflows/integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Integration Tests CI
22

33
on:
44
push:
5-
branches: [ develop, beta ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ develop, beta ]
7+
branches: [ main ]
88

99
jobs:
1010
integration:

.github/workflows/node.js.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Node.js CI
22

33
on:
44
push:
5-
branches: [ develop, beta ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ develop, beta ]
7+
branches: [ main ]
88

99
jobs:
1010
build:

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio
1414

1515
# How to contribute to the Application Insights Node.js SDK
1616

17-
1817
1. Fork this repo
19-
2. Clone your fork locally (`git clone https://github.com/<youruser>/ApplicationInsights-node.js
20-
3. Open a terminal and move into your local copy (`cd ApplicationInsights-node.js`)
18+
2. Clone your fork locally `git clone https://github.com/<youruser>/ApplicationInsights-node.js`.
19+
3. Open a terminal and move into your local copy `cd ApplicationInsights-node.js`.
2120
4. Install all dependencies with `npm install`.
2221
5. Build project
2322
```bash

README.md

Lines changed: 275 additions & 135 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 751 additions & 279 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.0.0-beta.12",
6+
"version": "3.0.0",
77
"description": "Microsoft Application Insights module for Node.js",
88
"repository": {
99
"type": "git",
@@ -68,8 +68,8 @@
6868
"@azure/core-client": "^1.0.0",
6969
"@azure/core-rest-pipeline": "^1.9.2",
7070
"@azure/identity": "^3.1.3",
71-
"@azure/monitor-opentelemetry": "^1.3.0",
72-
"@azure/monitor-opentelemetry-exporter": "^1.0.0-beta.21",
71+
"@azure/monitor-opentelemetry": "^1.4.0",
72+
"@azure/monitor-opentelemetry-exporter": "^1.0.0-beta.22",
7373
"@azure/opentelemetry-instrumentation-azure-sdk": "^1.0.0-beta.5",
7474
"@opentelemetry/api": "^1.8.0",
7575
"@opentelemetry/api-logs": "^0.49.1",

src/shared/configuration/config.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export class ApplicationInsightsConfig {
5757
this.otlpTraceExporterConfig = {};
5858
this.enableAutoCollectPerformance = true;
5959
this.enableAutoCollectExceptions = true;
60-
this.enableAutoCollectPerformance = true;
6160

6261
this.azureMonitorExporterOptions = {};
6362
this.samplingRatio = 1;
@@ -80,10 +79,12 @@ export class ApplicationInsightsConfig {
8079
// Check for explicitly passed options when instantiating client
8180
// This will take precedence over other settings
8281
if (options) {
83-
this.enableAutoCollectExceptions =
84-
options.enableAutoCollectExceptions || this.enableAutoCollectExceptions;
85-
this.enableAutoCollectPerformance =
86-
options.enableAutoCollectPerformance || this.enableAutoCollectPerformance;
82+
if (typeof(options.enableAutoCollectExceptions) === "boolean") {
83+
this.enableAutoCollectExceptions = options.enableAutoCollectExceptions;
84+
}
85+
if (typeof(options.enableAutoCollectPerformance) === "boolean") {
86+
this.enableAutoCollectPerformance = options.enableAutoCollectPerformance;
87+
}
8788
this.otlpTraceExporterConfig = Object.assign(
8889
this.otlpTraceExporterConfig,
8990
options.otlpTraceExporterConfig

src/types.ts

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

99

10-
export const AZURE_MONITOR_OPENTELEMETRY_VERSION = "1.0.0-beta.12";
10+
export const AZURE_MONITOR_OPENTELEMETRY_VERSION = "1.3.0";
1111
export const DEFAULT_ROLE_NAME = "Web";
1212
process.env["AZURE_MONITOR_DISTRO_VERSION"] = AZURE_MONITOR_OPENTELEMETRY_VERSION;
1313

test/backCompatibility/oldTSC/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)