Enable OpenTelemetry in Azure Functions: The Easiest Way via Azure Portal

Good news! As of June 2025, OpenTelemetry is now in preview for Azure Functions. If you want basic observability without writing code or installing libraries, you can now enable distributed tracing directly from the Azure Portal.

This quick guide shows the simplest way to enable OpenTelemetry in Azure Functions using built-in features — no NuGet packages or custom code needed.


What You Need

  • An existing Azure Function App (v4)

  • Application Insights already enabled (most new Function Apps have this by default)


Step-by-Step: Enable Distributed Tracing in the Portal

1. Go to Your Azure Function App
2. Enable Application Insights
  • In the left menu, go to "Application Insights"

  • If it’s not already enabled, click "Turn on Application Insights" and accept the defaults

3. View End-to-End Transactions
  • After deployment, go back to Application Insights

OT_01

  • Open "Transaction Search" or "Application Map"

  • You’ll start seeing traces that include Function execution, dependencies (e.g. HTTP calls), and timing breakdowns

OT_02


Why This Is Useful

  • Zero code changes required

  • Enables end-to-end distributed tracing

  • You can correlate data between services (e.g., Functions, API Management, Logic Apps)

  • Useful for debugging, performance monitoring, and SLA reporting


Wrap-Up

If you’re looking for a simple, no-code way to get observability into your Azure Functions, this built-in integration with Application Insights is the fastest path.

Want deeper control or need to export to other systems? Then explore OpenTelemetry SDKs and custom exporters in .NET, Python, or JavaScript.

Unknown's avatar

Author: João Paulo Costa

Microsoft MVP, MCT, MCSA, MCITP, MCTS, MS, Azure Solutions Architect, Azure Administrator, Azure Network Engineer, Azure Fundamentals, Microsoft 365 Enterprise Administrator Expert, Microsft 365 Messaging Administrator, ITIL v3.

Leave a comment