What you will learn

  • How to deploy your Next.js application with OpenTelemetry to Render with infrastack.ai

Prerequisites

The application should be on the nodejs runtime. The edge runtime is not supported at this time.

Overview

Render is a platform for deploying applications with ease. It supports a wide range of frameworks, including Next.js. With the power of infrastack.ai and OpenTelemetry, you can get comprehensive observability for your Next.js application on Render.

After you have configured your application with the infrastack.ai SDK by following the Integrate OpenTelemetry for Next.js with infrastack.ai guide, you can deploy your application to Render by following these steps:

1

Push your application code to a GitHub repository

  • On your GitHub account, create a new repository or use an existing one. It can be private or public.
  • Push your application code to the repository.
  • If you need help setting up your repo, take a look at this guide on GitHub.
2

Create a web service on Render

  • Go to the Render dashboard.
  • Click on the + New button.
  • Select the Web Service option.
  • Select the GitHub option.
  • Follow the instructions to connect your GitHub account to Render.
  • Select the repository you created in the previous step.
  • Click on the Connect button.

3

Configure your environment variables

  • Scroll down to the Environment Variables section.
  • Add the following environment variable:
  • INFRASTACK_API_KEY: Your infrastack.ai API key.

4

Deploy your application

  • Click on the Deploy Web Service button.
    It will take a few minutes to deploy your application.
    During the deployment, you will see the following logs:
5

Visit your application

You can visit your application by clicking on the URL displayed in your web service dashboard.

Now, you can check your data in the infrastack.ai dashboard.