TaskHub.Shared

TaskHub.Observability.OpenTelemetry

Unified observability setup for Traces, Metrics, and Logs.

Contents

Summary


This module provides a “one-stop shop” for configuring OpenTelemetry in TaskHub services. It follows industry standards to ensure compatibility with modern observability stacks (Grafana, Tempo, Prometheus, Loki).

Exporters

Instrumentation

The following libraries are automatically instrumented when using AddAppOpenTelemetry:

Registration

builder.Services.AddAppOpenTelemetry(o => {
    o.ServiceName = "MyService";
    o.OtlpEndpoint = "http://otel-collector:4317";
});