Monitoring .NET applications from OpenTelemetry Demo on Instana

You can automatically instrument a .NET application with the OpenTelemetry Demo and send metrics and traces to Instana through the Instana agent. You can view these metrics, trace, and logs data in the Instana UI. See the following example for instrumenting a .NET application (cart service) with the OpenTelemetry Collector .NET agent:

The cart service stores user shopping carts in Valkey. To start the OpenTelemetry integration, see the following sample steps:

Prerequisites

Before you begin, make sure that the following technologies are installed:

  • Docker
  • Docker Compose v2.0.0 or later

Deploying the application locally

To deploy the application, run the following commands at the root directory of the project:

git clone https://github.com/open-telemetry/opentelemetry-demo.git
cd opentelemetry-demo/

Run the following command to build the cart service:

dotnet restore
dotnet build

You can also use Docker Compose to build the cart application:

docker compose build cart