Monitoring DotNet applications from OpenTelemetry Demo on Instana

You can automatically instrument a DotNet 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 DotNet application (cart service) with the OpenTelemetry Collector DotNet 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

Checking the metrics in Instana UI

You can see the OpenTelemetry data such as metrics, trace, and log in the Instana UI. For more information, see Viewing the OpenTelemetry metrics data in the Instana UI generated by OpenTelemetry Demo application.

Before you start to view the data, you must configure your Instana backend and agent properly to collect data from the service.