This project is a simple ASP.NET Core Web API project for collecting and exporting telemetry data (logs, traces, and metrics) using OpenTelemetry.
- ASP.NET Core Web API
- OpenTelemetry integration for logging, tracing, and metrics.
- Exports telemetry data to the console and an OTLP (OpenTelemetry Protocol) endpoint.
- Includes a
docker-compose.yamlto run the application and a Jaeger instance. - A simple Product API with GET endpoints.
- .NET
- ASP.NET Core
- OpenTelemetry
- Docker
- Jaeger
- .NET SDK
- Docker Desktop
- Clone the repository.
- Navigate to the root directory.
- Run the command
docker-compose up --build. - The API will be available at
http://localhost:8090. - The Jaeger UI will be available at
http://localhost:16686.
GET /api/product: Retrieves a list of all products.GET /api/product/{id}: Retrieves a product by its ID.GET /api/google: Makes a request togoogle.comto demonstrate HTTP client instrumentation.
A Postman collection, Telemetry API Collection.postman_collection.json, is included for testing the API endpoints.