# Logging, Metrics, and Distributed Tracing in .NET with OpenTelemetry and ClickStack

DevFeed: [Logging, Metrics, and Distributed Tracing in .NET with OpenTelemetry and ClickStack](<https://devfeed.tech/articles/logging-metrics-and-distributed-tracing-in-net-with-opentelemetry-and-clickstack-5396.md>)

Original publisher: [Read original article](<https://clickhouse.com/blog/logging-metrics-distributed-tracing-dotnet-otel-clickstack>)

Author: Alex Soffronow Pagonidis

Published: 2026-06-03T09:21:38Z

Content type: tutorial

Language: en

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

Topics: [ASP.NET](<https://devfeed.tech/topics/aspnet.md>), [OpenTelemetry](<https://devfeed.tech/topics/opentelemetry.md>), [tracing](<https://devfeed.tech/topics/tracing.md>), [Grafana](<https://devfeed.tech/topics/grafana.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>), [Instrumentation](<https://devfeed.tech/topics/instrumentation.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>), [API](<https://devfeed.tech/topics/api.md>), [gRPC](<https://devfeed.tech/topics/grpc.md>), [SQL](<https://devfeed.tech/topics/sql.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [instrumentation](<https://devfeed.tech/tags/instrumentation.md>), [logging](<https://devfeed.tech/tags/logging.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [observability](<https://devfeed.tech/tags/observability.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>), [sql](<https://devfeed.tech/tags/sql.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [traces](<https://devfeed.tech/tags/traces.md>), [tracing](<https://devfeed.tech/tags/tracing.md>)

## AI overview

A practical walkthrough of instrumenting two ASP.NET services with OpenTelemetry and sending traces, logs, and metrics to ClickStack. The example uses an Order API and a Payment Service, with SQLite persistence and cross-service trace correlation.

## Source excerpt

A walkthrough of adding OpenTelemetry instrumentation to two ASP.NET services -- an Order API and a Payment Service -- and shipping traces, logs, and metrics to ClickStack, with auto-correlated signals and cross-service trace waterfalls out of the box.