Connect Next js app to azure app insights using open telemtry through the package - @vercel/otel

Ramji R 11 Reputation points
2023-10-13T14:45:05.88+00:00

I encountered the Next.js documentation that mentions using the package "@vercel/otel" for OpenTelemetry configuration. I followed the instructions and successfully set it up on the client side. However, it appears that there's a need for an OpenTelemetry collector backend to collect the data, and I need to use Azure Application Insights as a collector. When I checked the marketplace, I couldn't find Azure Application Insights listed as a collector here, but I did find other options like Datadog.

My question is, how can I connect my Next.js app to Azure Application Insights using OpenTelemetry, and is it possible to log data using the "@vercel/otel" package for this purpose?

https://stackoverflow.com/questions/77271266/connect-next-js-app-to-azure-app-insights-using-open-telemtry-through-the-packag

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,658 questions
{count} vote

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,551 Reputation points Moderator
    2023-10-16T08:12:57.7033333+00:00

    Ramji R, thank you for posting this question.

    You could also use the framework extension for Application Insights JavaScript SDK as mentioned here - https://learn.microsoft.com/en-us/azure/azure-monitor/app/javascript-framework-extensions?tabs=react

    Regarding specific questions related to Vercel/next.js, I would suggest reaching out to the Vercel community as mentioned here - vercel/next.js#community

    For specific issues related to "@vercel/otel", I would suggest raising it as an issue on the respective issue page - https://github.com/vercel/otel/issues

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.