Home / Companies / New Relic / Blog / Post Details
Content Deep Dive

OpenTelemetry Instrumentation for Azure Functions (TypeScript/ESM)

Blog post from New Relic

Post Details
Company
Date Published
Author
Andrew Lozoya, Principal Strategic Solutions Architect
Word Count
1,183
Company Posts That Month
30
Language
English
Hacker News Points
-
Post removed?
No
Summary

This guide provides a detailed walkthrough for setting up OpenTelemetry with Azure Functions, specifically for TypeScript projects using ECMAScript Modules (ESM), utilizing the latest OpenTelemetry JS SDK 2.x. It addresses the lack of available guidance for these newer SDK configurations and ESM compilation, especially in the context of Azure's preview OpenTelemetry support. The guide emphasizes understanding the architecture, particularly distinguishing between the Azure Functions Host and the Worker process where the OpenTelemetry SDK operates. It outlines necessary steps such as updating the host.json file, installing relevant npm dependencies, and configuring tracing in a dedicated file to ensure proper instrumentation. The guide also discusses disabling certain Worker OpenTelemetry capabilities and console logging to avoid conflicts and ensure telemetry data is correctly routed to endpoints like New Relic. Additionally, the text highlights the importance of configuring sampling settings and provides insights into logging configurations to optimize telemetry data flow.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
OpenTelemetry 34 413 72 31 +54%
Observability 6 2,816 550 145 +34%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.