---
title: "Next.js Baselime Template with OpenTelemetry"
description: "Get started with OpenTelemetry and Real User Monitoring."
url: "https://vercel.com/templates/next.js/nextjs-baselime-opentelemetry"
links:
  repository: "https://github.com/baselime/baselime-nextjs-template"
  demo: "https://github.com/baselime/baselime-nextjs-template"
  deploy: "https://vercel.com/new/clone?demo-title=Next.js+Baselime+Template+with+OpenTelemetry&demo-description=Get+started+with+OpenTelemetry+and+Real+User+Monitoring.&demo-url=https%3A%2F%2Fgithub.com%2Fbaselime%2Fbaselime-nextjs-template&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F19S0pfW6g7MnY9n3qBZOWh%2Fe4e9f910f5d389d7a4fcc6a6faa57d5d%2Fog.png&project-name=Next.js+Baselime+Template+with+OpenTelemetry&repository-name=nextjs-baselime-opentelemetry&repository-url=https%3A%2F%2Fgithub.com%2Fbaselime%2Fbaselime-nextjs-template&from=templates&integration-ids=oac_Giinlv0yMW9d97AysfaDTS6z"
---

# Next.js Baselime Template with OpenTelemetry

Get started with OpenTelemetry and Real User Monitoring.

# Next.js Baselime Template with OpenTelemetry

![image](https://github.com/baselime/baselime-nextjs-template/blob/main/assets/og.png?raw=true)

This is a [Next.js](https://nextjs.org/) project instrumented with [OpenTelemetry](https://opentelemetry.io/) and [Real User Monitoring](https://baselime.io/docs/sending-data/react-rum/) and sending logs and traces to [Baselime](https://console.baselime.io).

## Deployment

This project is deployed to Vercel

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fbaselime%2Fbaselime-nextjs-template&project-name=next-baselime-opentelemetry&repository-name=next-baselime-opentelemetry&demo-title=Baselime&demo-description=See%20the%20deployed%20data%20for%20this%20project&demo-url=https%3A%2F%2Fsandbox.baselime.io%2Fbaselime%2Fvercel-baselime%2Fdefault%2Fhome&demo-image=https%3A%2F%2Fgithub.com%2Fbaselime%2Fbaselime-nextjs-template%2Fraw%2Fmain%2Fassets%2Fog.png&integration-ids=oac_Giinlv0yMW9d97AysfaDTS6z)

## Logging

This template will automatically install the [Baselime Vercel Integration](https://vercel.com/integrations/baselime) which will setup a log drain to automatically capture all the logs from your Vercel projects.

![image](https://github.com/baselime/baselime-nextjs-template/blob/main/assets/logs.png?raw=true)

## Distributed Tracing With OpenTelemetry

This template is instrumented with the [Baselime OpenTelemetry SDK for Next.js](). This instrumentation will automatically capture distributed traces from your Next.js application and export them to Baselime for analysis.

![image](https://github.com/baselime/baselime-nextjs-template/blob/main/assets/traces.png?raw=true)


## Instructions

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

## Learn More

* To learn more about baselime go do the [docs](https://baselime.io/docs/)
* To see the deployed applications logs, and traces go to the [Baselime Console](https://console.baselime.io)

## Related Templates

### [Nextra: Docs Starter Kit](https://vercel.com/templates/next.js/documentation-starter-kit)

Simple, powerful and flexible markdown-powered docs site. Built with Next.js.

### [Next.js Commerce](https://vercel.com/templates/next.js/nextjs-commerce)

Starter kit for high-performance commerce with Shopify.

### [Blog Starter Kit](https://vercel.com/templates/next.js/blog-starter-kit)

A statically generated blog example using Next.js and Markdown.

## Related Integrations

### [Baselime](https://vercel.com/marketplace/baselime)

Search, query and alert on Vercel logs

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
