Skip to content

Commit 00c03f0

Browse files
author
Glenn Gailey
committed
Add info on installing package
1 parent a32371a commit 00c03f0

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

articles/azure-functions/functions-monitoring.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,23 @@ This code is an alternative to calling `trackMetric` by using the Node.js SDK fo
348348

349349
## Log custom telemetry in C# functions
350350

351-
There is a Functions-specific version of the Application Insights SDK that you can use to send custom telemetry data from your functions to Application Insights: [Microsoft.Azure.WebJobs.Logging.ApplicationInsights](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Logging.ApplicationInsights). Use a version of this package that supports your installed version of [Microsoft.Azure.WebJobs](https://www.nuget.org/packages/Microsoft.Azure.WebJobs/).
351+
There is a Functions-specific version of the Application Insights SDK that you can use to send custom telemetry data from your functions to Application Insights: [Microsoft.Azure.WebJobs.Logging.ApplicationInsights](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Logging.ApplicationInsights). Use the following command from the command prompt to install this package:
352+
353+
# [Command](#tab/cmd)
354+
355+
```cmd
356+
dotnet add package Microsoft.Azure.WebJobs.Logging.ApplicationInsights --version <VERSION>
357+
```
358+
359+
# [PowerShell](#tab/powershell)
360+
361+
```powershell
362+
Install-Package Microsoft.Azure.WebJobs.Logging.ApplicationInsights -Version <VERSION>
363+
```
364+
365+
---
366+
367+
In this command, replace `<VERSION>` with a version of this package that supports your installed version of [Microsoft.Azure.WebJobs](https://www.nuget.org/packages/Microsoft.Azure.WebJobs/).
352368
353369
The following C# examples uses the [custom telemetry API](../azure-monitor/app/api-custom-events-metrics.md). The example is for a .NET class library, but the Application Insights code is the same for C# script.
354370

0 commit comments

Comments
 (0)