https://github.com/mojski/otello
Otello example .NET integration with OpenTelemetry collector
https://github.com/mojski/otello
asp-net-core dotnet-aspire loki opentelemetry seq tempo
Last synced: 4 months ago
JSON representation
Otello example .NET integration with OpenTelemetry collector
- Host: GitHub
- URL: https://github.com/mojski/otello
- Owner: mojski
- Created: 2024-10-02T15:09:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-25T19:15:17.000Z (12 months ago)
- Last Synced: 2025-10-24T10:56:14.261Z (4 months ago)
- Topics: asp-net-core, dotnet-aspire, loki, opentelemetry, seq, tempo
- Language: C#
- Homepage:
- Size: 151 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Otello web api
.Net poc app showing how to use open telemetry colector and seq. In this scenario server app is monitoring vendor angostic. App push logs to collector, then collector push data to seq (or other services in future).
```mermaid
graph TD
Serwer["Server"] --"grpc 4317"--> OTEL["Otel Collector"]
OTEL --"HTTP 5341"--> Seq
OTEL --"grpc 18889"--> Aspire
OTEL --"HTTP 3100"--> node_1
OTEL --"grpc 4317"--> node_2
node_1["Loki"]
node_2["Tempo"]
Seq["Seq"]
Aspire["Aspire"]
```
Steps to run
- stop local windows seq if installed or other container that use port 5341 - running other seq instance
- run docker-compose (docker compose up -d) (from infra directory)
- run application, you should see starting logs at localhost:5341 seq UI.
- hit http://localhost:5080/api/test (GET) to trigger error log
## Seq

## .NET Aspire

## Grafana Loki
query used:
```
{service_name="Otello"}
```

## Grafana Tempo
query used:
```
{resource.service.name="Otello" && name="GET /api/test"}
```
