# Instrumenting your NextJS application with OpenTelemetry and ClickStack

DevFeed: [Instrumenting your NextJS application with OpenTelemetry and ClickStack](<https://devfeed.tech/articles/instrumenting-your-nextjs-application-with-opentelemetry-and-clickstack-5319.md>)

Original publisher: [Read original article](<https://clickhouse.com/blog/instrumenting-your-app-with-otel-clickstack>)

Author: Dale McDiarmid

Published: 2025-09-04T00:00:00Z

Content type: tutorial

Language: en

Sources: [ClickHouse Blog](<https://devfeed.tech/sources/clickhouse-blog.md>)

Topics: [clickhouse](<https://devfeed.tech/topics/clickhouse.md>), [OpenTelemetry](<https://devfeed.tech/topics/opentelemetry.md>), [observability](<https://devfeed.tech/topics/observability.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>), [SDKs](<https://devfeed.tech/topics/sdks.md>), [data](<https://devfeed.tech/topics/data.md>), [real-time](<https://devfeed.tech/topics/real-time.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Compression](<https://devfeed.tech/topics/compression.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [clickhouse](<https://devfeed.tech/tags/clickhouse.md>), [compression](<https://devfeed.tech/tags/compression.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [observability](<https://devfeed.tech/tags/observability.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>), [performance](<https://devfeed.tech/tags/performance.md>), [time](<https://devfeed.tech/tags/time.md>), [traces](<https://devfeed.tech/tags/traces.md>)

## AI overview

This practical article explains how to instrument a NextJS application with OpenTelemetry and ClickStack. It presents ClickHouse as a shared foundation for real-time analytics and observability, covering logs, traces, metrics, errors, and performance data. The example uses ClickPy, a ClickHouse-powered application backed by nearly 1.8 trillion Python package-download rows and serving more than 1.5 million queries per week.

## Source excerpt

See how easy it is to instrument your NextJS app with OpenTelemetry and ClickStack