Skip to content

Commit 7f14fca

Browse files
committed
Enhance custom data tracking section for Azure Functions with updated SDK usage and distributed tracing guidance for Node.js v4
1 parent b2e7b45 commit 7f14fca

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

articles/azure-functions/functions-reference-node.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,14 @@ Azure Functions lets you define the threshold level to be used when tracking and
11181118
11191119
## Track custom data
11201120
1121-
By default, Azure Functions writes output as traces to Application Insights. For more control, you can instead use the [Application Insights Node.js SDK](https://github.com/microsoft/applicationinsights-node.js) to send custom data to your Application Insights instance.
1121+
By default, Azure Functions writes output as traces to Application Insights. For more control, you can instead use the [Application Insights Node.js SDK](https://github.com/microsoft/applicationinsights-node.js) to send custom logs, metrics, and dependencies to your Application Insights instance.
1122+
1123+
> [!NOTE]
1124+
> Some methods in the Application Insights Node.js SDK have changed over time and might have minor syntax differences from the examples shown here. For the latest API usage, see the [Application Insights Node.js SDK documentation](https://github.com/microsoft/applicationinsights-node.js).
1125+
1126+
::: zone pivot="nodejs-model-v4"
1127+
For distributed tracing in the Node.js v4 programming model, use the [`@azure/functions-opentelemetry-instrumentation`](https://www.npmjs.com/package/@azure/functions-opentelemetry-instrumentation) package instead of the Application Insights SDK. This package provides OpenTelemetry-based automatic instrumentation for Azure Functions. For more information, see the [OpenTelemetry Azure Functions Instrumentation for Node.js](https://github.com/Azure/azure-functions-nodejs-opentelemetry) GitHub repository.
1128+
::: zone-end
11221129
11231130
# [JavaScript](#tab/javascript)
11241131

0 commit comments

Comments
 (0)