Skip to content

Commit a91c40a

Browse files
committed
Add explanation regarding manual APIs
1 parent 8cde897 commit a91c40a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

articles/azure-monitor/app/opentelemetry-add-modify.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,12 +1327,12 @@ Not available in .NET.
13271327
#### [Node.js](#tab/nodejs)
13281328

13291329

1330-
You need to use `applicationinsights` v3 Beta package to achieve this. (https://www.npmjs.com/package/applicationinsights/v/beta)
1330+
You need to use `applicationinsights` v3 Beta package to achieve this. (https://www.npmjs.com/package/applicationinsights/v/beta). Same methods and intefaces should be available there, all sample code in documented for @azure/monitor-opentelemetry apply to v3 Beta package as well.
13311331

13321332
```javascript
13331333
const { TelemetryClient } = require("applicationinsights");
13341334

1335-
const appInsights = new TelemetryClient();
1335+
const telemetryClient = new TelemetryClient();
13361336
```
13371337

13381338
Then use the `TelemetryClient` to send custom telemetry:
@@ -1343,7 +1343,7 @@ Then use the `TelemetryClient` to send custom telemetry:
13431343
let eventTelemetry = {
13441344
name: "testEvent"
13451345
};
1346-
appInsights.trackEvent(eventTelemetry);
1346+
telemetryClient.trackEvent(eventTelemetry);
13471347
```
13481348

13491349
##### Logs
@@ -1353,7 +1353,7 @@ Then use the `TelemetryClient` to send custom telemetry:
13531353
message: "testMessage",
13541354
severity: "Information"
13551355
};
1356-
appInsights.trackTrace(traceTelemetry);
1356+
telemetryClient.trackTrace(traceTelemetry);
13571357
```
13581358

13591359
##### Exceptions
@@ -1366,7 +1366,7 @@ Then use the `TelemetryClient` to send custom telemetry:
13661366
exception: error,
13671367
severity: "Critical"
13681368
};
1369-
appInsights.trackException(exceptionTelemetry);
1369+
telemetryClient.trackException(exceptionTelemetry);
13701370
}
13711371
```
13721372

articles/azure-monitor/app/opentelemetry-configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Use one of the following two ways to configure the connection string:
123123
```typescript
124124
const { useAzureMonitor, AzureMonitorOpenTelemetryOptions } = require("@azure/monitor-opentelemetry");
125125
const options: AzureMonitorOpenTelemetryOptions = {
126-
azureMonitorExporterConfig: {
126+
azureMonitorExporterOptions: {
127127
connectionString: "<your connection string>"
128128
}
129129
};
@@ -601,7 +601,7 @@ For example:
601601
const { useAzureMonitor, AzureMonitorOpenTelemetryOptions } = require("@azure/monitor-opentelemetry");
602602

603603
const options: AzureMonitorOpenTelemetryOptions = {
604-
azureMonitorExporterConfig = {
604+
azureMonitorExporterOptions = {
605605
connectionString: "<Your Connection String>",
606606
storageDirectory: "C:\\SomeDirectory",
607607
disableOfflineStorage: false

0 commit comments

Comments
 (0)